Enter Parameters
Adjust sliders or type values directly
Real-time Calculation Ready
Adjust parameters to see instant results
Time Calculator Quick Reference
Quick Answer
A time calculator works out how long you worked between a start and end time: convert both to minutes, subtract, deduct any unpaid break, then convert back to hours and minutes and decimal hours. For example, a 9:00 to 17:30 shift with a 45-minute break is 7 hours 45 minutes, or 7.75 decimal hours, while 8:30 to 18:15 with a 30-minute break is 9.25 hours, including 1.25 hours beyond an 8-hour day. Use it for timesheets and payroll; times use a 24-hour clock, and an end time earlier than the start is treated as an overnight shift.
How This Calculation Works
- Values calculate dynamically in real-time as you enter figures or adjust sliders.
- The equation on the right is exactly what the calculator runs — check any result by hand.
Elapsed Time:
Start minutes = start hour × 60 + start minute
End minutes = end hour × 60 + end minute (+ 1,440 if the shift crosses midnight)
Net minutes = End − Start − Break
Hours = floor(Net / 60) | Minutes = Net mod 60
Decimal hours = Net / 60
Overtime = max(0, Decimal hours − 8)How to Use the Time Calculator
Quick 3-step guide for accurate and fast calculations
Enter your start time hour (0-23)
In the Time Calculator, fill in Start Time Hour (0-23), Start Time Minute (0-59), End Time Hour (0-23), End Time Minute (0-59) and Unpaid Break Duration.
Read your total duration (hours & minutes)
The Time Calculator instantly shows Total Duration (Hours & Minutes), Total Decimal Hours, Total Elapsed Minutes and Overtime (Above 8h), updating as you type.
Compare scenarios
Change Start Time Minute (0-59) to see how it affects Total Duration (Hours & Minutes), then check the formula below to verify the math.
Specific Instructions:
Enter the start time and end time as hours (0–23) and minutes, plus any unpaid break in minutes. The calculator subtracts the break and shows the total duration in hours and minutes, decimal hours, total minutes and any overtime above 8 hours. If the end time is earlier than the start time, it is treated as an overnight shift ending the next day.
Time Calculator Formula
The Time Calculator uses the following formula, calculated in your browser as you change the inputs:
Worked Example: Time Calculator
Shift: 09:00 to 17:30 with a 45-minute unpaid break Elapsed = 17:30 − 09:00 = 8h 30m = 510 minutes Net = 510 − 45 = 465 minutes = 7 hrs 45 mins = 7.75 decimal hours Night shift: 22:00 to 06:30 with a 30-minute break Net = (390 + 1,440 − 1,320) − 30 = 480 minutes = 8 hrs 0 mins
Frequently Asked Questions — Time Calculator
How do I add time in hours and minutes?
How do I calculate total work hours for payroll?
Can I convert hours to decimal format for payroll?
More Date & Time Calculators
Explore similar high-precision calculation tools in the Date & Time suite