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

DataSource
The source of the dated record a result was calculated from: which dataset, the period that record applies to, and the law or notification behind it.
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.
SalaryTaxSurcharge
The surcharge under section 4AB of the Income Tax Ordinance: rate percent of the tax from the rate table, payable when taxable income exceeds over rupees. See SalaryTaxYear.surcharge.
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, bool includeSurcharge = false}) → SalaryTax?
calculateSalaryTax for a monthly salary: the income is monthlySalary × 12, and SalaryTax.monthly is the tax to withhold each month. includeSurcharge adds the section 4AB surcharge, as in calculateSalaryTax. Never throws.
calculateSalaryTax(num annualIncome, {int? taxYear, Object? date, bool includeSurcharge = false}) → 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.