DATE AND TIME · CALCULATED IN YOUR BROWSER

Time Duration Calculator

Work out the hours between two times, including overnight shifts and unpaid breaks.

Total duration

8h30m

Input

Total hours (decimal)8.50
Total minutes510
Total seconds30,600
Crosses midnight

Total duration

8:30:00

About this tool

Enter a start and end time to get the total hours and minutes, which is what timesheets, machine time, and event lengths need. When the end time is earlier than the start, the tool treats it as crossing midnight — 22:00 to 06:00 is eight hours — rather than reporting a negative number. Enter a break in minutes to deduct it and get actual worked time.

How it works

  1. Enter the start and end times.
  2. Add a break in minutes if there was one.
  3. Read the total hours, total minutes, and whether it crossed midnight.

Assumptions

An end time earlier than the start is treated as an overnight shift, not a negative duration. Breaks are deducted in minutes.

Privacy

Every calculation runs inside this browser. Dates and birthdays are never uploaded, stored, or written to the URL or any log.

Frequently asked questions

Are overnight shifts handled correctly?
Yes. When the end time is earlier than the start, 24 hours are added, so 22:30 to 07:00 is 8 hours 30 minutes. The result is labelled as crossing midnight so you can confirm the interpretation is the one you wanted.
Does this calculate overtime pay?
No, it only measures duration. Overtime rates in Taiwan differ across ordinary days, rest days, regular leave days, and public holidays; use the overtime calculator in the Taiwan salary tools for that.