Hours Calculator
Calculate hours between times or add/subtract hours from a time
How It Works
Overview
An hours calculator does two related jobs: it tells you how much time has elapsed between two clock times (useful for timesheets and payroll), and it adds or subtracts a duration from a starting time (useful for scheduling, finish-time estimates, and meeting math). Both operations use minute-level precision and convert seamlessly between hours/minutes and decimal hours.
The calculator handles three common edge cases automatically: overnight shifts where end < start (it wraps through midnight), additions that push past 24:00 (it wraps to the following day), and conversions between the hours-and-minutes format people read and the decimal format payroll software expects.
The Formula
The two modes:
- Difference: convert both times to total minutes, subtract, and wrap by adding 24 × 60 = 1440 minutes if the result is negative.
- Add/subtract: convert the base time to total minutes, add the offset (positive or negative), and wrap into the 0–1439 range modulo 1440.
Decimal hours are simply total minutes ÷ 60. Hours are the floor of total minutes ÷ 60, with minutes as the remainder modulo 60. Decimal output is rounded to two places (hundredths of an hour, or about 36 seconds).
Worked Example
Three common scenarios:
- Standard shift. Clock in 09:15, clock out 17:45. Duration: 8h 30m, decimal 8.50.
- Overnight shift. Clock in 22:30, clock out 06:15. Duration: 7h 45m, decimal 7.75 (the calculator wraps automatically).
- Find finish time. Start at 13:20 and add 4h 25m. Result: 17:45.
For a payroll week with daily hours of 8.50, 7.75, 8.00, 8.25, and 7.50, total weekly hours = 40.00. At $22/hour that's $880.00 — clean math because everything is in decimal.
When to Use This
- Timesheet entry — converting clock-in/clock-out pairs into hours-and-minutes or decimal hours.
- Payroll calculation — multiplying decimal hours by hourly rate to get gross pay.
- Overtime tracking — totaling hours per day and per week to identify hours past 40 (US standard).
- Schedule planning — calculating finish times for shifts, classes, flights, or cooking.
- Freelance time billing — turning a span like "9:30 AM to 11:50 AM" into 2.33 billable hours.
- Travel and ETA estimates — adding a known duration to a departure time to get arrival.
Common Mistakes to Avoid
- Mixing AM/PM with 24-hour time. The input expects 24-hour format — 5:30 PM is 17:30, not 5:30. Submitting 05:30 instead of 17:30 produces wrong results.
- Forgetting unpaid breaks. A 9-to-5 shift with a 30-minute unpaid lunch is 7.5 paid hours, not 8. Subtract breaks separately.
- Not converting minutes to decimal. "8 hours 30 minutes" is 8.50, not 8.30. This is the single most common payroll error people make by hand.
- Ignoring overtime rules. Some jurisdictions require 1.5× pay after 40 hours/week, others after 8 hours/day; total decimal hours alone don't tell you which apply.
- Crossing DST without adjustment. The calculator can't see your timezone — manually add or subtract one hour for spring-forward or fall-back days.
- Rounding too aggressively. Rounding each entry to the nearest 0.25 introduces drift over a week; round only the weekly total if your payroll allows.
Frequently Asked Questions
Ad Space