Time Duration Calculator

Calculate the exact duration between two clock times. Handles midnight crossovers automatically.

Time Inputs

::

24-hour (hh:mm:ss)

::

24-hour (hh:mm:ss)

Duration
00:00:00
hoursminutesseconds
24-Hour Timeline
12am6am12pm6pm12am
Decimal Hours
0.00
hrs (for billing)
Total Minutes
0
mins elapsed
Total Seconds
0
secs elapsed
Crossed Midnight
No
same day
Documentation

How It Works

Both times are converted to total seconds from midnight, then the difference is computed. If the end is earlier than the start, 24 hours (86,400 s) is added — indicating the end is the next calendar day.

Decimal hours = total seconds ÷ 3600. For example, 1h 30m = 1.5h — the format used in billing and payroll.

Formula

Duration = End − Start

If Duration < 0: Duration += 86400s

Decimal = Duration ÷ 3600

Disclaimer: For informational purposes only.

Frequently Asked Questions
How to Use

About the Time Duration Calculator

What it calculates

This time duration calculator handles date arithmetic, time zones, calendars, and scheduling utilities. Calculate the exact duration between two clock times. Handles midnight crossovers.

When to use it

Use for planning events, deadlines, workdays, and time-zone aware calculations.

Example

Adjust the inputs above to model your specific scenario with the Time Duration Calculator.

Explore More

Related Calculators