Calculates the German income tax
$ npm install german-income-tax
With TypeScript
import tax, { Year } from "german-income-tax";
const myTax = tax( 88000, Year.Y2018 );
// myTax.solidarityTax === 1558.59
// myTax.incomeTax === 28338
const ourTax = tax( 88000, Year.Y2018, { couple: true } );
// myTax.solidarityTax === 1113.42
// myTax.incomeTax === 20224
or with JavaScript
import tax from "german-income-tax";
const myTax = tax( 88000, "2018" );
// myTax.solidarityTax === 1558.59
// myTax.incomeTax === 28338
const ourTax = tax( 88000, "2018", { couple: true } );
// myTax.solidarityTax === 1113.42
// myTax.incomeTax === 20224
MIT