How the Netherlands netto loon calculator is verified

Inputs

InputFieldType
Bruto jaarloon (EUR)grossAnnualnumber

The formula

Each derived value below is computed by the Valem engine from the expression shown, in this order. Nothing else runs — there is no hidden code path.

Derived valueFieldFormula (JSONata)
Box 1 belastingbox1Tax($g := grossAnnual; $round((($g < $const.band1 ? $g : $const.band1) * $const.rate1) + (($g > $const.band1 ? (($g < $const.band2 ? $g : $const.band2) - $const.band1) : 0) * $const.rate2) + (($g > $const.band2 ? ($g - $const.band2) : 0) * $const.rate3), 2))
Algemene heffingskortingahk(grossAnnual <= 28406 ? 3068 : grossAnnual >= $const.band2 ? 0 : $round(3068 - 0.06337 * (grossAnnual - 28406), 2))
Arbeidskortingarbeidskorting(grossAnnual <= 43071 ? 5599 : ($a := 5599 - 0.0651 * (grossAnnual - 43071); $round($a > 0 ? $a : 0, 2)))
Belastingtax($x := box1Tax - ahk - arbeidskorting; $round($x > 0 ? $x : 0, 2))
Netto / jaarnetAnnual$round(grossAnnual - tax, 2)
Netto / maandnetMonthly$round(netAnnual / 12, 2)

Rates and thresholds

The expressions above read these as $const. They are the figures the annual refresh replaces, so they live as data rather than being written into the formulas — which is what makes a year-on-year change a one-line diff instead of an edit to arithmetic.

ConstantValue
band138441
band276817
rate10.3582
rate20.3748
rate30.495

Test vectors (2)

Every case is executed against this model on each build, by the Java engine and independently by a JavaScript one. A mismatch of a single cent fails the build, so the page cannot ship advertising a figure the model no longer produces.

Case 1 — S1 40,000 EUR

given grossAnnual40000
expect box1Tax14353.88
expect ahk2333.29
expect arbeidskorting5599
expect tax6421.59
expect netAnnual33578.41

Case 2 — S3 120,000 EUR — credits fully phased out

given grossAnnual120000
expect box1Tax49528.48
expect ahk0

Sources

Check it yourself — and reuse it

The whole model as JSON — inputs, outputs, formulas, vectors and sources in one re-runnable document.

This model is published under CC BY 4.0: use it, adapt it, build on it, with attribution. The licence covers the model — the expression of each rule and the arrangement of the catalog. The rates and thresholds are law, and nobody licenses those; the sources above are where they come from.

← Back to the Netherlands netto loon calculator

Built with Valem — a live, verifiable calculator you can fork and embed.