Hours Calculator — Time Between Two Times
Enter a start time, an end time and any unpaid break to instantly get the gross and net duration in decimal hours and hours-minutes format — ideal for timesheets and payroll.
h
min
h
min
minutes
8 h 00 min
- 1
Start (minutes from midnight)
9 × 60 + 0 = 540 - 2
End (minutes from midnight)
17 × 60 + 30 = 1 050 - 3
Gross duration
1 050 − 540 = 510 - 4
Net minutes
510 − 30 = 480 - 5
Net hours
480 ÷ 60 = 8
Hur fungerar denna kalkylator?
Net hours = (end time − start time) − break. Overnight shifts are handled automatically. Enter start and end times plus any break in minutes; get gross duration, net hours in decimal form and H h MM min format — ready for timesheets and payroll.
Formel
How this is calculated
The calculator converts both times to total minutes since midnight (hours × 60 + minutes), then subtracts the start from the end. If the result is negative — meaning the end time is earlier on the clock — 1,440 minutes (one full day) is added, making the calculation correct for overnight shifts.
The gross duration is the full time between start and end without any deductions. Subtracting any unpaid break (lunch, mandatory rest, etc.) gives the net hours worked, which is the payable figure in most payroll systems. Net time is floored at zero — you cannot work negative hours.
Decimal hours (e.g. 7.5 h) and the hours-minutes format (7 h 30 min) are both shown because payroll software typically uses decimal hours while human readable summaries favour hours and minutes. To convert decimal hours yourself: multiply the decimal part by 60 (0.5 × 60 = 30 min).
Vanliga frågor
Enter your start time, end time and any unpaid break. The calculator subtracts the break from the gross duration and shows net hours in decimal form (e.g. 7.5 h) which most payroll systems expect.
Yes. If the end time is earlier than the start time (e.g. 22:00 to 06:00), the calculator automatically adds 24 hours so the overnight duration is correct (8 h in that example).
Multiply the decimal part by 60: 0.75 × 60 = 45 min, so 7.75 h = 7 h 45 min. The calculator shows both formats automatically.
Även känt som
TG we-Calculate Editorial Team. (2026). Hours Calculator — Time Between Two Times [Online calculator]. TG we-Calculate. https://we-calculate.com/sv/calculator/hours-calculator
TG we-Calculate Editorial Team. "Hours Calculator — Time Between Two Times." TG we-Calculate. 2026. https://we-calculate.com/sv/calculator/hours-calculator.
TG we-Calculate Editorial Team, "Hours Calculator — Time Between Two Times," TG we-Calculate, 2026. [Online]. Available: https://we-calculate.com/sv/calculator/hours-calculator
@misc{wecalculate_hours_calculator, title = {Hours Calculator — Time Between Two Times}, author = {{TG we-Calculate Editorial Team}}, howpublished = {\url{https://we-calculate.com/sv/calculator/hours-calculator}}, year = {2026}, note = {TG we-Calculate} }
Hjälpte denna kalkylator dig?
