LoginSignup
3
2

More than 5 years have passed since last update.

(日本での)所得税を計算する npm module を作りました

Posted at

所得額から所得税を計算する npm module を作りました。

Install

npm 経由で

npm install japanese-income-tax

API

var tax = require('japanese-income-tax');

tax.incomeTax(taxableIncome)

課税所得から、所得税を計算します。

tax.specialIncomeTax(taxableIncome)

課税所得から、復興特別所得税を計算します。

tax.totalIncomeTax(taxableInome)

課税所得から、通常の所得税と、復興特別所得税の合計を計算します。

tax.actualIncomeTax(taxableIncome)

課税所得から、実際に税務署に払う税額を計算します。(実際に払う税額は所得税と復興特別所得税の合計値から下2桁切り捨てた値になります)

tax.residentTax(taxableIncome)

課税所得から、住民税を計算します。

> var tax = require('japanese-income-tax')
> tax.incomeTax(8005000)
1205150
> tax.specialIncomeTax(8005000)
25308
> tax.totalIncomeTax(8005000)
1230458
> tax.actualIncomeTax(8005000)
1230400
> tax.residentTax(8005000)
800500
3
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
2