Net to gross: the gross pay needed for a target net
calculate_gross_salaryFinds the smallest gross pay (to the cent) whose net pay reaches the target, by bisection over the same engine as /net. Returns the full breakdown for that gross pay and the remaining difference to the target.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| de | No | German profile (used when country is DE) | |
| uk | No | UK profile (used when country is UK) | |
| net | Yes | Target net pay for the period, in EUR (DE) or GBP (UK) | |
| year | No | Tax year. UK: the year the tax year starts in (2026 = 2026-27) | |
| period | No | Pay period of the amount: year, month, week, day (DE only), fortnight or four_weeks (UK only) | month |
| country | Yes | DE or UK (GB is accepted as UK) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| net | Yes | Net pay: gross minus all employee deductions | |
| year | Yes | Tax year (UK: year the tax year starts) | |
| gross | Yes | Gross pay for the period | |
| lines | Yes | Every deduction and contribution with rule and source | |
| notes | Yes | Assumptions and what is not included | |
| annual | Yes | The period's figures scaled to a year (periods per year × amount) | |
| period | Yes | Pay period of all amounts | |
| country | Yes | DE or UK | |
| profile | Yes | The profile as applied, including defaults that were filled in | |
| sources | Yes | Official publications used | |
| currency | Yes | EUR or GBP | |
| tax_year | Yes | Tax year label, e.g. 2026 or 2026-27 | |
| difference | Yes | net - target_net (0 when the target is reachable to the cent) | |
| disclaimer | Yes | ||
| target_net | Yes | The net pay that was asked for | |
| employer_cost | Yes | Gross plus employer contributions | |
| deduction_rate | Yes | Employee deductions in % of gross | |
| employee_deductions | Yes | Sum of the employee lines | |
| employer_contributions | Yes | Sum of the employer lines |