Skip to main content

EXAMPLE_NL_TAX_NET_SALARY

Constant EXAMPLE_NL_TAX_NET_SALARY 

Source
pub const EXAMPLE_NL_TAX_NET_SALARY: &str = "spec net_salary 2026-01-01\n\"\"\"\nDutch Net Salary Calculator 2026\n\nComputes net salary from gross salary, applying the 2026 Dutch\npayroll tax brackets, national insurance contributions,\ngeneral tax credit, and employment tax credit.\n\nCovers employees and benefit recipients under state pension age.\nBased on rates from Belastingdienst (Dutch Tax Authority) 2026.\n\nInputs:\n  gross_salary          Gross salary per chosen period (see payslip or contract).\n  pay_period            Pay period: month, 4weeks, week, quarter, year.\n  income_source         Source of income: employment or benefit.\n  pension_contribution  Employee share of pension premium per period (see payslip).\n  payroll_tax_credit    Whether tax credits are applied (yes for main/only income).\n\nOutputs:\n  net_salary              Net salary per period.\n  payroll_tax_per_period  Tax withheld per period.\n  net_annual_salary       Net annual salary.\n  gross_annual_salary     Gross annual salary.\n\"\"\"\n\ndata money: measure\n  -> decimals 2\n  -> unit eur: 1.00\n  -> minimum 0 eur\n\ndata pay_period: text\n  -> option \"month\"\n  -> option \"4 week\"\n  -> option \"week\"\n  -> option \"quarter\"\n  -> option \"year\"\n  -> help \"Pay period: how often you are paid. Default is monthly.\"\n\ndata income_source_type: text\n  -> option \"employment\"\n  -> option \"benefit\"\n\ndata gross_salary: money\n  -> help \"Gross salary per chosen period. Found on your payslip or in your employment contract.\"\n\ndata income_source: income_source_type\n  -> suggest \"employment\"\n  -> help \"Source of income: employment for employees, benefit for unemployment/disability/welfare. Employees receive the employment tax credit, benefit recipients do not.\"\n\ndata pension_contribution: money\n  -> suggest 0 eur\n  -> help \"Employee share of the pension premium per period. Found on your payslip under pension deduction. Reduces taxable salary.\"\n\ndata payroll_tax_credit: boolean\n  -> suggest true\n  -> help \"Apply payroll tax credit? Choose yes if this is your only or main income. May only be applied at one employer or benefits agency.\"\n\n\nrule periods_per_year:\n  12\n  unless pay_period is \"4 week\"  then 13\n  unless pay_period is \"week\"    then 52\n  unless pay_period is \"quarter\" then 4\n  unless pay_period is \"year\"    then 1\n\nrule gross_annual_salary:\n  gross_salary * periods_per_year\n\nrule pension_contribution_per_year:\n  pension_contribution * periods_per_year\n\nrule taxable_annual_salary:\n  gross_annual_salary - pension_contribution_per_year\n\nrule bracket_1_income:\n  taxable_annual_salary\n  unless taxable_annual_salary > 38_883 eur\n    then 38_883 eur\n\nrule bracket_1_tax:\n  bracket_1_income * 35.75%\n\nrule bracket_2_income:\n  0 eur\n  unless taxable_annual_salary > 38_883 eur and taxable_annual_salary <= 78_426 eur\n    then taxable_annual_salary - 38_883 eur\n  unless taxable_annual_salary > 78_426 eur\n    then 39_543 eur\n\nrule bracket_2_tax:\n  bracket_2_income * 37.56%\n\nrule bracket_3_income:\n  0 eur\n  unless taxable_annual_salary > 78_426 eur\n    then taxable_annual_salary - 78_426 eur\n\nrule bracket_3_tax:\n  bracket_3_income * 49.5%\n\nrule payroll_tax_before_credits:\n  bracket_1_tax + bracket_2_tax + bracket_3_tax\n\nrule general_tax_credit:\n  3_115 eur\n  unless taxable_annual_salary > 29_736 eur and taxable_annual_salary <= 78_426 eur\n    then 3_115 eur - (taxable_annual_salary - 29_736 eur) * 6.4%\n  unless taxable_annual_salary > 78_426 eur then 0 eur\n\nrule employment_tax_credit:\n  0 eur\n  unless income_source is \"employment\" and taxable_annual_salary > 0 eur and taxable_annual_salary <= 11_965 eur\n    then taxable_annual_salary * 8.324%\n  unless income_source is \"employment\" and taxable_annual_salary > 11_965 eur and taxable_annual_salary <= 25_845 eur\n    then 996 eur + (taxable_annual_salary - 11_965 eur) * 31.009%\n  unless income_source is \"employment\" and taxable_annual_salary > 25_845 eur and taxable_annual_salary <= 45_592 eur\n    then 5_300 eur + (taxable_annual_salary - 25_845 eur) * 1.95%\n  unless income_source is \"employment\" and taxable_annual_salary > 45_592 eur and taxable_annual_salary <= 132_920 eur\n    then 5_685 eur - (taxable_annual_salary - 45_592 eur) * 6.51%\n  unless income_source is \"employment\" and taxable_annual_salary > 132_920 eur\n    then 0 eur\n\nrule total_tax_credit:\n  0 eur\n  unless payroll_tax_credit\n    then general_tax_credit + employment_tax_credit\n\nrule payroll_tax_per_year:\n  payroll_tax_before_credits - total_tax_credit\n  unless payroll_tax_before_credits <= total_tax_credit\n    then 0 eur\n\nrule net_annual_salary:\n  gross_annual_salary - pension_contribution_per_year\n  - payroll_tax_per_year\n\nrule net_salary:\n  net_annual_salary / periods_per_year\n\nrule payroll_tax_per_period:\n  payroll_tax_per_year / periods_per_year\n";