calculate_income_tax
Work out UK take-home pay from gross pay: income tax by band (England, Wales, Northern Ireland, or Scotland's bands from 2017-18), employee Class 1 National Insurance with mid-year rate changes, student loans (plan1, plan2, plan4, plan5, postgraduate) and net pay per year, month and week, for tax years 2011-12 to 2026-27 (tax_year like "2026-27"). gross_pence is pay for one frequency period (year, month, week, day, hour). Standard tax code, no pension. Integer pence out. Nothing is stored.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"gross_pence": "<gross_pence>",
"frequency": "<frequency>",
"tax_year": "<tax_year>",
"region": "<region>"
},
"name": "calculate_income_tax"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan | No | ||
| region | Yes | ||
| tax_year | Yes | ||
| frequency | Yes | ||
| gross_pence | Yes | ||
| postgraduate | No | ||
| days_per_week | No | ||
| hours_per_week | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| week | Yes | ||
| year | Yes | ||
| bands | Yes | ||
| lines | Yes | ||
| loans | Yes | ||
| month | Yes | ||
| rates | Yes | ||
| tax_year | Yes | ||
| personal_allowance_pence | Yes |