This is the time & date section of the formula verification report, which explains what each kind of case tests, how the counts are produced and what they do not prove; how to read the report walks through a single row. Rows run from the largest suite to the smallest; each row's address ends in the calculator's slug, so one calculator's evidence can be linked and cited on its own. The test file behind every row, and the per-kind numbers, are in the machine-readable report.
Every time & date calculator, with its case mix
| Calculator | Cases | Case mix |
|---|---|---|
| Business Days Calculator | 289 | 18 independent · 13 golden · 8 boundary · 250 property |
| Time Percentage Calculator | 243 | 25 golden · 13 boundary · 200 property · 5 structural |
| Working Hours Calculator | 236 | 18 independent · 5 golden · 13 boundary · 200 property |
| Time Unit Converter | 70 | 6 independent · 18 golden · 11 boundary · 26 property · 9 structural |
| Days Calculator | 40 | 27 golden · 10 boundary · 2 property · 1 structural |
| Age Calculator | 37 | 13 golden · 24 boundary |
| Timesheet Calculator | 37 | 22 golden · 7 boundary · 3 property · 5 structural |
| Time Calculator | 30 | 6 independent · 8 golden · 10 boundary · 5 property · 1 structural |
| Time Zone Converter | 28 | 16 golden · 5 boundary · 4 property · 3 structural |
What each suite checks
Counts say how much was checked; these say what. Each case below is quoted from its test file exactly as the runner recorded it, in the order the cases run, independent cross-checks first. Where a suite has more cases than fit, the count in brackets says how many of that kind exist in total. The 8 largest suites in this category are shown; the other 1 are in the machine-readable report.
Business days engine
289 passing cases behind Business Days Calculator: 18 independent cross-check, 13 golden, 8 boundary and 250 property.
- Independent cross-check — GOV.UK lists 8 England & Wales bank holidays in 2026
- Independent cross-check — GOV.UK 2026 includes 2026-01-01
- Independent cross-check — GOV.UK 2026 includes 2026-04-03
- Independent cross-check — GOV.UK 2026 includes 2026-04-06
- Independent cross-check — GOV.UK 2026 includes 2026-05-04
- Independent cross-check — GOV.UK 2026 includes 2026-05-25
6 of 18 independent cross-check cases shown. The test file is scripts/validate-business-days-engine.cjs.
Time percentage calculator engine
243 passing cases behind Time Percentage Calculator: 25 golden, 13 boundary, 200 property and 5 structural.
- Golden — percentageOf partSeconds
- Golden — percentageOf wholeSeconds
- Golden — percentageOf percentage (30s of 5min = 10%)
- Golden — percentageOf reciprocal (5min of 30s = 1000%)
- Golden — 40 min of 1 hour
- Golden — 20 min of 1 hour
6 of 25 golden cases shown. The test file is scripts/validate-time-percentage-engine.cjs.
Working hours engine
236 passing cases behind Working Hours Calculator: 18 independent cross-check, 5 golden, 13 boundary and 200 property.
- Independent cross-check — New York is UTC-5 in January
- Independent cross-check — New York is UTC-4 in July
- Independent cross-check — Kolkata is a half-hour zone
- Independent cross-check — Kathmandu is a 45-minute zone
- Independent cross-check — Sydney is on summer time in January
- Independent cross-check — Sydney is on standard time in July
6 of 18 independent cross-check cases shown. The test file is scripts/validate-working-hours-engine.cjs.
Time unit engine
70 passing cases behind Time Unit Converter: 6 independent cross-check, 18 golden, 11 boundary, 26 property and 9 structural.
- Independent cross-check — seconds via minutes matches seconds direct
- Independent cross-check — a fortnight in seconds two ways
- Independent cross-check — years reach days through the same conversion
- Independent cross-check — the average of twelve months is a Gregorian year
- Independent cross-check — and of three months, a quarter of it
- Independent cross-check — the breakdown adds back to the original
6 of 6 independent cross-check cases shown. The test file is scripts/validate-time-units-engine.cjs.
Days calculator engine
40 passing cases behind Days Calculator: 27 golden, 10 boundary, 2 property and 1 structural.
- Golden — between totalDays
- Golden — between years
- Golden — between months
- Golden — between days
- Golden — between weeks
- Golden — between weeksRemainderDays
6 of 27 golden cases shown. The test file is scripts/validate-days-calculator-engine.cjs.
Age calculator engine
37 passing cases behind Age Calculator: 13 golden and 24 boundary.
- Golden — worked: years
- Golden — worked: months
- Golden — worked: days
- Golden — worked: totalMonthsElapsed
- Golden — worked: totalDays
- Golden — worked: totalWeeks
6 of 13 golden cases shown. The test file is scripts/validate-age-calculator-engine.cjs.
Timesheet calculator engine
37 passing cases behind Timesheet Calculator: 22 golden, 7 boundary, 3 property and 5 structural.
- Golden — row: 9:00-17:30 minus 30min break -> workedMin
- Golden — row: 9:00-17:30 -> spanMin
- Golden — row: 9:00-19:00 minus 30min break -> workedMin
- Golden — row: 9:00-17:00 minus 30min break -> workedMin
- Golden — formatHoursMinutes(480) -> "8h 0m"
- Golden — formatHoursMinutes(570) -> "9h 30m"
6 of 22 golden cases shown. The test file is scripts/validate-timesheet-calculator-engine.cjs.
Time calculator engine
30 passing cases behind Time Calculator: 6 independent cross-check, 8 golden, 10 boundary, 5 property and 1 structural.
- Independent cross-check — one day is 86,400 seconds
- Independent cross-check — one hour is 3,600 seconds
- Independent cross-check — 1 Jan 2000 was a Saturday
- Independent cross-check — 28 Feb 2024 + 1 day is 29 Feb 2024 (leap year)
- Independent cross-check — 28 Feb 2023 + 1 day is 1 Mar 2023 (not a leap year)
- Independent cross-check — 31 Dec 2025 23:30 + 45 min crosses into 2026
6 of 6 independent cross-check cases shown. The test file is scripts/validate-time-calculator-engine.cjs.
