Skip to content

💴 A tool for calculating Japanese income tax.

License

Notifications You must be signed in to change notification settings

spinzar/japanese-income-tax

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

japanese-income-tax v0.1.0

A tool for calculating Japanese income tax.

This tool calculates Japanese income tax from the given taxable income.

This tool based on the rules for 2016. The result includes the Reconstruction special income tax.

API

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

tax.incomeTax(taxableIncome)

  • @param {number} taxableIncome The taxable income
  • @return {number}

Calculates the income tax.

tax.specialIncomeTax(taxableIncome)

  • @param {number} taxableIncome The taxable income
  • @return {number}

Calculates the Reconstruction special income tax.

tax.totalIncomeTax(taxableIncome)

  • @param {number} taxableIncome The taxable income
  • @return {number}

Returns the total of the income tax and the special income tax.

tax.actualIncomeTax(taxableIncome)

  • @param {number} taxableIncome The taxable income
  • @return {number}

Returns the actual amount you need to pay to the tax bureau.

tax.residentTax(taxableIncome)

  • @param {number} taxableIncome The taxable income
  • @return {number}

Calculates the resident tax.

Example

> 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

License

MIT

About

💴 A tool for calculating Japanese income tax.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%