Every number on CalcProven is either computed by one tested engine or cited to a primary source. This page explains how.
One engine
- Durations are kept as whole seconds, and dates as plain calendar dates (year, month and day) with no time zone. Hours are never added up as floating-point numbers, so small errors can't creep in.
- Decimals such as 66.67% are worked out with exact whole-number arithmetic and rounded once, at the end.
- The same code writes each result, its Proof and the page's reference tables, so they always agree.
- Time zones are read from the IANA Time Zone Database through your browser's built-in
Intlsupport. No UTC offset is typed in by hand.
Rounding
- Percentages and decimal hours: 2 decimal places, rounded half away from zero, so 0.675 becomes 0.68.
- Times worked out from a percentage: to the nearest second.
- Each page states its own rounding, and its Proof shows the unrounded figures.
Where the rules come from
| Rule | Source |
|---|---|
| 1 minute = 60 seconds; 1 hour = 60 minutes = 3,600 seconds | SI Brochure, 9th edition, Table 8 (BIPM); NIST SP 811 |
| Calendar dates and leap years | The Gregorian calendar: a leap year every 4 years, except century years not divisible by 400 |
| Time zones and daylight saving | IANA Time Zone Database, as built into your browser |
| US federal holidays | U.S. Office of Personnel Management |
| UK bank holidays | GOV.UK |
Testing
411 of 411 tests passed on the last run, on December 5, 2026. The tests run before every build, and a failing test stops the build, so a page with a failing calculation can't be published.
| Area | Tests |
|---|---|
| Decimal Hours page: answers, Proof and tables | 55 |
| Hours page: answers, Proof and tables | 25 |
| Percent of an Hour page: answers, Proof and tables | 49 |
| Time Card page: answers, Proof and tables | 35 |
| Time Percentage page: answers, Proof and tables | 16 |
| Calendar dates and leap years | 10 |
| Clock times, overnight spans and breaks | 32 |
| Decimal hours | 43 |
| Exact decimals and rounding | 12 |
| Durations in seconds | 6 |
| Percent of an hour | 29 |
| Time card days: punch order, past midnight and breaks | 15 |
| Time entries and time percentages | 56 |
| Time zones and daylight saving | 4 |
| Hours dial: arcs, breaks and marks | 6 |
| Time Percentage rule: scales and labels | 6 |
| Time Card week chart: bars, breaks and Sunday nights | 12 |
Before a calculator is published, its tests must include:
- at least 10 cases worked out by hand and written into the test;
- the edge cases that apply to it: midnight (00:00 and 24:00), overnight shifts, daylight-saving gaps and repeated hours in the US and UK, 29 February and leap years, month ends such as 31 January plus one month, year boundaries, and empty or invalid entries;
- property tests over whole ranges, such as every second of a day surviving a round trip from seconds to a percentage and back;
- snapshots of every reference table, so a table can't change without a reviewed reason.
Reviews
Each calculator page names the person who checked it and the date of the last real review. The Editorial policy explains how sources are chosen and how AI tools are used.
Report an error
If a number looks wrong, please tell us. The Corrections page explains what to send and lists every fix.