This page explains exactly how the calculators work, so you can check a result instead of trusting it.
Integer minutes first
Every time is converted to whole minutes after midnight before any arithmetic happens. Totals are kept in minutes and only converted to decimal hours for display. That avoids the drift that comes from rounding each day to two decimal places and then adding the days together.
Overnight handling
If a clock out reads earlier than the clock in, 1,440 minutes are added to the clock out, so the interval ends the next morning. 10:00 PM to 6:00 AM is 480 minutes. If the two times are identical, the calculator asks for a correction instead of returning a zero hour shift.
Breaks
A time card day can hold several intervals. All intervals are added first, then the unpaid break for that day is subtracted once. A break that is longer than the time worked is rejected rather than shown as a negative total. In the break time calculator, paid and unpaid breaks are separated: unpaid breaks reduce paid time and paid breaks do not.
Decimal conversion
Decimal hours are minutes divided by 60 and rounded to two places for display. Going back, decimal hours are multiplied by 60 and rounded to the nearest whole minute. The converter shows the minute total as well, so the rounding is visible.
Weekly overtime
The threshold is converted to minutes. Regular minutes are the smaller of the week total and the threshold. Overtime minutes are whatever remains. A threshold of 40 hours means 2,400 minutes. Nothing is rounded to a whole hour, so 40.25 hours produces 0.25 overtime hours at a 40 hour threshold.
Biweekly treatment
Biweekly mode calculates week one and week two separately, then adds the results. There is no 80 hour combined threshold. This preserves overtime from a long week even when the other week is short, which is how a weekly overtime rule behaves.
Pay estimates
Regular pay is regular hours multiplied by the rate. Overtime pay is overtime hours multiplied by the rate and then by the multiplier. Gross pay is the sum of the two, rounded to cents for display. Tax, deductions, employer contributions, tips, bonuses and premium rules are outside the model.
Validation
The calculators reject empty times, impossible clock values, identical clock in and clock out, negative rates, negative breaks, breaks longer than the shift, minutes above 59, and percentages above 200. A day longer than 16 hours still calculates but carries a note. Valid entries are preserved when one field fails, so you can correct one value instead of retyping the day.
Test cases used
These cases are run against the shipping calculation engine on every build.
| Case | Expected |
|---|---|
| 9:00 AM to 5:00 PM | 8 hours |
| 9:00 AM to 5:30 PM minus 30 minutes | 8 hours |
| 10:00 PM to 6:00 AM | 8 hours |
| 10:00 PM to 6:00 AM minus 30 minutes | 7 hours 30 minutes |
| 7 hours 45 minutes | 7.75 decimal |
| 7.5 decimal | 7 hours 30 minutes |
| 15 minutes | 0.25 decimal |
| 45 hours, threshold 40 | 40 regular, 5 overtime |
| 40 hours, threshold 40 | 40 regular, 0 overtime |
| 38 hours, threshold 40 | 38 regular, 0 overtime |
| 45 hours at 20 per hour, multiplier 1.5 | 950 gross |
| Week 1 45 hours, week 2 35 hours | 5 overtime hours preserved |
| 52,000 salary, 40 hours, 52 weeks | 25 per hour |
| Break longer than the shift | Error, no total |
Limits
Results are arithmetic, not a legal or payroll determination. Overtime rules vary by location, occupation, employment status, contract and employer policy. Rounding policies, shift differentials, tips, bonuses, paid leave and multiple rates are not modelled beyond the fields shown. Daylight saving changes are not applied, because the calculations work on clock time. Verify anything that affects pay with your employer, payroll team or the authority that applies to you.