How this is calculated
Each duration is converted to total seconds, the operation is applied, and the result is converted back by integer division: hours = total ÷ 3600, minutes = (total mod 3600) ÷ 60, seconds = total mod 60.
Worked example: 2:45:00 plus 1:30:00 is 9,900 plus 5,400 = 15,300 seconds. Dividing gives 4 hours with 900 seconds left over, which is 15 minutes — so 4:15:00.
Working in total seconds throughout is what removes the carrying errors. The conversion back to hours and minutes happens once, at the end, rather than at every intermediate step where a mistake could creep in.
Why timesheets use decimal hours instead
Payroll multiplies hours by a rate, and 7:30 cannot be multiplied directly — it has to become 7.5 first. The conversion is minutes divided by 60, so 30 minutes is 0.5 hours, 15 minutes is 0.25, and 20 minutes is 0.333.
The awkward cases are the ones that do not divide evenly. Ten minutes is 0.1667 hours, and rounding it to 0.17 across a hundred entries introduces a real discrepancy. Payroll systems generally keep the full precision internally and round only the final total, which is why a hand-checked timesheet can disagree with the system by a few minutes.
Negative results and subtraction
Subtracting a longer duration from a shorter one gives a negative result, which is meaningful in some contexts — time over or under budget, a schedule variance — and nonsense in others.
Where the intent is elapsed time between two clock times rather than a duration difference, use the hours calculator instead. That one treats an end time earlier than the start as crossing midnight, which is what a night shift needs and what duration subtraction would get wrong.
How to use the time calculator
- Enter the first duration. Hours, minutes and seconds. Leave any unit at zero if it does not apply.
- Choose add or subtract. Subtraction can produce a negative result, which is meaningful for variance against a budget.
- Read both formats. The h:mm:ss form is for people; the decimal-hours total is the one payroll and billing systems want.