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
baseWeeks
4
weeksFromAgeOrChildCare
5
weeksEducationResearch
8
ageThresholdYears
33
qualifyingDaysForYearLeave
60
daysPerTwelfth
21
monthsPerYear
12
Test vectors (12)
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 — N1 the basic four weeks on a five-day week is 20 days
given daysPerWeek
5
given ageAtYearEnd
30
given caresForChild
no
given educationOrResearchRole
no
given monthsWorked
12
given daysWorkedInYear
250
given daysTaken
0
expect weeksEntitled
4
expect fullYearDays
20
expect daysEntitled
20
Case 2 — N2 reaching 33 by the year end is five weeks, so 25
given daysPerWeek
5
given ageAtYearEnd
33
given caresForChild
no
given educationOrResearchRole
no
given monthsWorked
12
given daysWorkedInYear
250
given daysTaken
0
expect weeksEntitled
5
expect daysEntitled
25
Case 3 — N3 the band is AT 33, so 32 is still on four weeks
given daysPerWeek
5
given ageAtYearEnd
32
given caresForChild
no
given educationOrResearchRole
no
given monthsWorked
12
given daysWorkedInYear
250
given daysTaken
0
expect weeksEntitled
4
expect daysEntitled
20
Case 4 — N4 caring for a child gives the same five weeks at any age
given daysPerWeek
5
given ageAtYearEnd
24
given caresForChild
yes
given educationOrResearchRole
no
given monthsWorked
12
given daysWorkedInYear
250
given daysTaken
0
expect weeksEntitled
5
expect daysEntitled
25
Case 5 — N5 a teacher gets eight weeks, which beats the age band rather than adding to it
given daysPerWeek
5
given ageAtYearEnd
40
given caresForChild
no
given educationOrResearchRole
yes
given monthsWorked
12
given daysWorkedInYear
250
given daysTaken
0
expect weeksEntitled
8
expect daysEntitled
40
Case 6 — N6 half a year of employment is six twelfths under § 102
given daysPerWeek
5
given ageAtYearEnd
30
given caresForChild
no
given educationOrResearchRole
no
given monthsWorked
6
given daysWorkedInYear
125
given daysTaken
0
expect daysEntitled
10
Case 7 — N7 below § 101's 60 days, § 105 pays per 21 worked days, not per month
given daysPerWeek
5
given ageAtYearEnd
30
given caresForChild
no
given educationOrResearchRole
no
given monthsWorked
5
given daysWorkedInYear
50
given daysTaken
0
expect daysEntitled
3.3
Case 8 — N8 at exactly 60 worked days the month rule takes over
given daysPerWeek
5
given ageAtYearEnd
30
given caresForChild
no
given educationOrResearchRole
no
given monthsWorked
3
given daysWorkedInYear
60
given daysTaken
0
expect daysEntitled
5
Case 9 — N9 fewer than 21 worked days earns nothing under § 105
given daysPerWeek
5
given ageAtYearEnd
30
given caresForChild
no
given educationOrResearchRole
no
given monthsWorked
0
given daysWorkedInYear
20
given daysTaken
0
expect daysEntitled
0
Case 10 — N10 a six-day week gets more days out of the same four weeks
given daysPerWeek
6
given ageAtYearEnd
30
given caresForChild
no
given educationOrResearchRole
no
given monthsWorked
12
given daysWorkedInYear
300
given daysTaken
0
expect daysEntitled
24
Case 11 — N11 days already taken come off the remainder
given daysPerWeek
5
given ageAtYearEnd
33
given caresForChild
no
given educationOrResearchRole
no
given monthsWorked
12
given daysWorkedInYear
250
given daysTaken
10
expect daysRemaining
15
Case 12 — N12 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.