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
daysBase
15
daysAustral
20
qualifyingServiceYears
1
progressiveFromYears
10
yearsPerExtraDay
3
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 — CH1 under a year with the employer: no annual leave yet
given serviceYears
0
given qualifyingYearsWorked
0
given australRegion
no
given daysTaken
0
expect daysEntitled
0
Case 2 — CH2 after a year: 15 working days
given serviceYears
2
given qualifyingYearsWorked
2
given australRegion
no
given daysTaken
0
expect daysEntitled
15
Case 3 — CH3 Magallanes, Aysén or Palena: 20
given serviceYears
2
given qualifyingYearsWorked
2
given australRegion
yes
given daysTaken
0
expect daysEntitled
20
Case 4 — CH4 ten years of work alone adds nothing yet
given serviceYears
10
given qualifyingYearsWorked
10
given australRegion
no
given daysTaken
0
expect progressiveDays
0
expect daysEntitled
15
Case 5 — CH5 thirteen years: the first progressive day
given serviceYears
13
given qualifyingYearsWorked
13
given australRegion
no
given daysTaken
0
expect progressiveDays
1
expect daysEntitled
16
Case 6 — CH6 twenty-two years: four progressive days
given serviceYears
22
given qualifyingYearsWorked
22
given australRegion
no
given daysTaken
0
expect progressiveDays
4
expect daysEntitled
19
Case 7 — CH7 days taken never push the remainder 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.