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
daysPerMonthAccrued
2.5
statutoryDays
30
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 — C1 a full reference year accrues the 30 jours ouvrables
given leaveYearStart
2025-06-01
given leaveYearEnd
2026-05-31
given workStart
2025-06-01
given workEnd
2026-05-31
given daysTaken
0
expect monthsAccrued
12
expect daysEntitled
30
expect yearLengthDays
365
Case 2 — C2 five months worked is 12,5 rounded UP to 13 (service-public’s own example)
given leaveYearStart
2025-06-01
given leaveYearEnd
2026-05-31
given workStart
2025-06-01
given workEnd
2025-10-31
given daysTaken
0
expect monthsAccrued
5
expect daysEntitled
13
Case 3 — C3 six months worked accrues 15 jours ouvrables exactly
given leaveYearStart
2025-06-01
given leaveYearEnd
2026-05-31
given workStart
2025-06-01
given workEnd
2025-11-30
given daysTaken
0
expect monthsAccrued
6
expect daysEntitled
15
Case 4 — C4 one month worked accrues 2,5, rounded up to 3
given leaveYearStart
2025-06-01
given leaveYearEnd
2026-05-31
given workStart
2025-06-01
given workEnd
2025-06-30
given daysTaken
0
expect monthsAccrued
1
expect daysEntitled
3
Case 5 — C5 days already taken come off the remainder
given leaveYearStart
2025-06-01
given leaveYearEnd
2026-05-31
given workStart
2025-06-01
given workEnd
2026-05-31
given daysTaken
10
expect daysEntitled
30
expect daysRemaining
20
Case 6 — C6 the accrual is capped at the statutory 30
given leaveYearStart
2025-06-01
given leaveYearEnd
2026-05-31
given workStart
2025-06-01
given workEnd
2026-05-31
given daysTaken
0
expect daysEntitled
30
Case 7 — C7 joining partway through the reference period
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.