incometax library

Income tax on salary, from the salaried rate table for each tax year.

Same as the pakdatakit/incometax entry point of the npm package.

Classes

SalaryTax
Result of calculateSalaryTax and calculateMonthlySalaryTax.
SalaryTaxSlab
One band of the salaried rate table: income above over (and up to upTo) pays fixed plus rate percent of the amount above over.
SalaryTaxYear
The salaried rate table for one tax year (1 July to 30 June). Result of getSalaryTaxSlabs.

Functions

calculateMonthlySalaryTax(num monthlySalary, {int? taxYear, Object? date}) → SalaryTax?
calculateSalaryTax for a monthly salary: the income is monthlySalary × 12, and SalaryTax.monthly is the tax to withhold each month. Never throws.
calculateSalaryTax(num annualIncome, {int? taxYear, Object? date}) → SalaryTax?
Income tax on a salaried individual's taxable income for a tax year, from the salaried rate table (see getSalaryTaxSlabs).
getSalaryTaxSlabs([int? taxYear]) → SalaryTaxYear?
Returns the salaried rate table for a tax year: Division I of Part I of the First Schedule to the Income Tax Ordinance 2001, clause (2), which applies when salary is more than 75% of taxable income.
getSalaryTaxYears() → List<int>
Which tax years getSalaryTaxSlabs covers, oldest first.
getTaxYear([Object? date]) → int?
The tax year (July to June) that contains date, or null for an invalid date.