Hours Calculator
Calculate gross shift duration, break time and net hours from start and end clocks, with overnight handling and decimal-hour output.
Calculator arithmetic runs locally in your browser and does not require an API.
The interactive calculator loads here when JavaScript is enabled.
How to use Hours Calculator
Enter 24-hour start/end times and break minutes. Automatic mode treats an earlier end clock as the next day. Select Next day explicitly for a full 24-hour interval with identical clocks.
Formula and method
Gross seconds = end clock − start clock + selected day adjustment. Net seconds = gross seconds − break seconds. Decimal hours = net seconds/3,600.
Understanding the results
Gross hours span the whole interval; net hours remove the one entered break. Decimal hours are a fraction of an hour, not HH.MM notation. The tool does not apply overtime, payroll, time zones or daylight-saving rules.
Worked example
A shift from 09:00 to 17:30 spans 8 hours 30 minutes. Subtracting a 30-minute break leaves 8 hours, or 8.0 decimal hours.
Check your actual work-time rules separately; this tool only performs elapsed-time arithmetic.
Frequently asked questions
Does 1 hour 30 minutes equal 1.30 decimal hours?
No. Thirty minutes is half an hour, so the decimal value is 1.5.
Why do identical clocks give zero in automatic mode?
They represent the same instant in that mode; select Next day explicitly to count a full day.
Can I subtract a break longer than the shift?
No. Break duration cannot exceed the gross interval.
Does this calculate paid overtime?
No. It reports elapsed time only; workplace and payroll rules must be checked separately.