A basic PAYE tax estimation calculator JavaScript library
The ScalaJS library is used to generate the JavaScript, code enhancements must be made to the Scala implementation of the tax-calculator
To use this code you need to generate the Javascript from the Scala to do this run the following command in the SBT console
fullOptJS
The following function is exposed by the JavaScript library and can be used to generate a JSON that can be consumed by a service. See example JSONs.
Supported Methods | Description |
---|---|
uk.gov.hmrc.payeestimator.services.LiveTaxCalculatorService().calculateTax(isStatePensionAge: String, date: Int, taxCode: String, grossPayPence: Int, payPeriod: String, hoursIn: Int) |
Calculates income tax and national insurance contributions More... |
This code is open source software licensed under the Apache 2.0 License.