quialo.

Time Duration Calculator

Enter a start time and an end time to see the duration.

Enter a start time and an end time in 24 hour HH:MM format. The tool returns the duration broken into whole hours and minutes, plus the total in minutes. When the end time is earlier than or equal to the start time, the span is assumed to cross midnight into the next day (for example 22:00 to 06:00 is 8 hours). All logic runs in your browser.

How to use

  1. Type or select the start time as HH:MM (00:00 to 23:59).
  2. Type or select the end time.
  3. Read the duration in hours and minutes, the total minutes, and whether midnight was crossed.
  4. Swap the times or reset with one click.

Examples

  • 09:30 to 17:15 is 7 hours 45 minutes (465 total minutes), does not cross midnight.
  • 22:00 to 06:00 is treated as 8 hours (crossing midnight), 480 total minutes.
  • Same time for start and end yields 0 hours 0 minutes, since there is no span between them.

FAQs

How does crossing midnight work?
If the end time is less than or equal to the start time, the calculator adds 24 hours (1,440 minutes) to the end before subtracting. This models overnight shifts and late events without requiring an explicit day selector.
Does it support seconds or AM/PM?
No. Only HH:MM in 24 hour form is accepted. Seconds are ignored in most scheduling contexts, and the 24 hour format removes ambiguity around noon and midnight.
What if I enter 24:00?
24:00 is not a valid time in this tool (hours must be 0 to 23). Use 00:00 of the next day instead, or let the cross midnight rule handle an end of 00:00 after a late start.
Can I calculate pay for an overnight shift?
Yes. The duration and total minutes are exactly what you need to multiply by an hourly rate. The crossesMidnight flag can be used to label the result in your own records.
Is the data sent to a server?
No. The arithmetic is performed locally with no network activity. Your times stay on your device.

Related tools