Docomint

Time Duration Calculator

Calculate the elapsed time between two times of day, in hours and minutes.

🔒 Processed on your device

Calculates the gap between two clock times within a day — a work shift, a meeting block, a workout — automatically rolling over to the next day when the end time is earlier than the start time (an overnight shift from 10 PM to 6 AM, for instance), rather than returning a nonsensical negative duration.

Example: A shift from 9:15 AM to 5:45 PM lasts exactly 8 hours 30 minutes (510 minutes total) — enter 22:00 to 06:00 instead and it correctly returns 8 hours by rolling the end time into the next calendar day.

How it works

  1. Enter a start time and end time, in 24-hour HH:MM format
  2. Press Calculate
  3. The elapsed duration, in hours and minutes, appears instantly, computed on your device

Frequently asked questions

What happens if the end time is earlier than the start time?

It's treated as spanning into the next day — e.g. 10:00 PM to 6:00 AM is calculated as an 8-hour overnight duration, not as a negative or invalid result, with a note confirming that assumption.

Can I enter times in AM/PM format instead of 24-hour?

No — enter times in 24-hour HH:MM format (e.g. 17:45 for 5:45 PM). This avoids AM/PM ambiguity, especially around 12:00 noon and midnight, which are common sources of off-by-12-hour errors.

Is my numbers uploaded anywhere?

No — Time Duration Calculator runs entirely in your browser using JavaScript/WebAssembly. Your numbers is never sent to a server.

Related tools