⏱️ Time between two times · timesheet · overtime · add hours

Hours Calculator

Find the hours and minutes between two times (night shifts included), take off an unpaid break, total a weekly timesheet with overtime and pay, work out what time it will be in 8 hours, and convert h:mm to decimal hours. Runs privately in your browser.

Examples: “9am to 5:30pm”, “10:45 pm to 6:20 am”, “8 hours from now”, “2 hours 30 minutes after 10:15 pm”.
For spans over 24 h
🔒
Privacy: Everything runs locally in your browser. Your timesheet is kept only in this browser’s storage and is never uploaded.

How to calculate hours between two times

Hours worked = end time − start time − unpaid break. If the end time is earlier than the start time, the shift ran past midnight, so add 24 hours to the end time first.

Minutes to decimal hours

Payroll multiplies hours by a rate, so it needs decimal hours: divide the minutes by 60. 7 h 45 min is 7.75 hours, not 7.45. Going the other way, multiply the decimal part by 60: 0.3 h is 18 minutes.

MinutesDecimalMinutesDecimal
50.08350.58
100.17400.67
150.25450.75
200.33500.83
250.42550.92
300.50601.00

Common shifts at a glance

ShiftBreakHours worked
9 AM – 5 PMnone / 30 min8 h / 7.5 h
9 AM – 6 PM1 h8 h
10 AM – 7 PM1 h8 h
8:30 AM – 5:15 PM45 min8 h
7 AM – 7 PMnone12 h
10 PM – 6 AM30 min7.5 h

How overtime is worked out

Frequently asked questions

How do I calculate the hours worked between two times?

Subtract the start time from the end time, then subtract any unpaid break. For example, 9:00 AM to 5:30 PM with a 30-minute lunch is 8 hours 30 minutes minus 30 minutes = 8 hours, or 8.00 decimal hours.

How do I calculate hours for a night shift that crosses midnight?

Add 24 hours to the end time before subtracting. 10:45 PM to 6:20 AM becomes 22:45 to 30:20, which is 7 hours 35 minutes (7.58 decimal hours). The calculator does this automatically and marks the result “next day”.

How do I convert hours and minutes to decimal hours?

Divide the minutes by 60 and add them to the hours. 7 h 45 min = 7 + 45/60 = 7.75 hours; 8 h 20 min = 8.33 hours. To go back, multiply the decimal part by 60: 8.2 hours is 8 hours 12 minutes.

What time will it be 8 hours from now?

Open “Add / subtract”, keep “Use the current time” ticked and press +8 h. You can also type “8 hours from now” in the box at the top. For example, 8 hours after 10:30 PM is 6:30 AM the next day.

How is weekly overtime pay calculated?

Multiply the regular hours by your rate and the overtime hours by your rate × the overtime multiplier, then add them. 45 hours at 20 an hour with overtime after 40 hours at 1.5× = 40 × 20 + 5 × 30 = 950. Pick a preset or set your own daily or weekly limits in the Timesheet tab.

Should I round clock-in and clock-out times?

Only if your employer’s policy says so. The timesheet can round each start and end time to the nearest 5, 6 or 15 minutes; leave it on “No rounding” to count exact minutes.

Is my timesheet saved or uploaded?

Nothing is uploaded. The timesheet rows, rate and overtime settings are stored in your browser’s local storage so they are still there next time on the same device. Use “Download CSV” to keep a copy or open it in Excel or Google Sheets.