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.
Constant
Value
statutoryDays
25
lateStartDays
5
Test vectors (7)
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 — F1 a full earning year is the familiar 25 days
given leaveYearStart
2026-01-01
given leaveYearEnd
2026-12-31
given workStart
2026-01-01
given workEnd
2026-12-31
given unpaidAbsenceDays
0
given startedAfterAug31
no
given daysTaken
0
expect paidDays
25
expect daysEntitled
25
Case 2 — F2 half a year gives 12.6027, and 7 § rounds it UP to 13 rather than to 13 by luck
given leaveYearStart
2026-01-01
given leaveYearEnd
2026-12-31
given workStart
2026-07-01
given workEnd
2026-12-31
given unpaidAbsenceDays
0
given startedAfterAug31
no
given daysTaken
0
expect presentDays
184
expect paidDays
13
expect daysEntitled
13
Case 3 — F3 unpaid absence is subtracted before the division, not after
given leaveYearStart
2026-01-01
given leaveYearEnd
2026-12-31
given workStart
2026-01-01
given workEnd
2026-12-31
given unpaidAbsenceDays
30
given startedAfterAug31
no
given daysTaken
0
expect payableDays
335
expect paidDays
23
expect daysEntitled
23
Case 4 — F4 the 31 August cliff: five days, not four months' worth
given leaveYearStart
2026-01-01
given leaveYearEnd
2026-12-31
given workStart
2026-09-01
given workEnd
2026-12-31
given unpaidAbsenceDays
0
given startedAfterAug31
yes
given daysTaken
0
expect paidDays
9
expect leaveDays
5
expect daysEntitled
5
Case 5 — F5 a period wider than the earning year is still capped at the statutory 25
given leaveYearStart
2026-01-01
given leaveYearEnd
2026-12-31
given workStart
2020-01-01
given workEnd
2030-12-31
given unpaidAbsenceDays
0
given startedAfterAug31
no
given daysTaken
0
expect daysEntitled
25
Case 6 — F6 days already taken come off the remainder
given leaveYearStart
2026-01-01
given leaveYearEnd
2026-12-31
given workStart
2026-01-01
given workEnd
2026-12-31
given unpaidAbsenceDays
0
given startedAfterAug31
no
given daysTaken
10
expect daysRemaining
15
Case 7 — F7 taking more than the entitlement never goes negative
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.