Calculate a pro rata salary
calculate_pro_rata_salaryWork out a part-time salary from the full-time salary and the hours or days worked compared with full time, with the take-home pay on the pro rata salary for a tax year.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| taxYear | No | UK tax year, e.g. "2026-27". Defaults to the current one. | |
| actualUnits | Yes | Hours (or days) actually worked a week, in the same unit | |
| fullTimeUnits | Yes | Full-time hours (or days) a week, e.g. 37.5 | |
| fullTimeSalary | Yes | Full-time annual salary | |
| studentLoanPlan | No | Student loan plans held: one plan or a list of every plan, e.g. ["plan2", "postgrad"]. plan1 (pre-2012), plan2 (2012 onwards), plan4 (Scotland), plan5 (2023 onwards), postgrad (postgraduate loan, repaid alongside any other plan). Omit or "none" for no loan. | |
| scottishTaxpayer | No | True for a Scottish taxpayer (Scottish bands) |