Time Duration Calculator

Compute duration between two times or add/subtract an interval β€” with cross-midnight support.

⏱️ HH:MM:SS + decimal hours πŸŒ™ Cross midnight supported βž• Add / βž– Subtract intervals

Inputs

βœ… Inputs

Use HH:MM:SS (seconds optional on some browsers).

If end is next day, enable Cross midnight.

Example: start 22:00 and end 06:00 β†’ 8 hours (when enabled).

Tip: If your end time is earlier than start time, enable Cross midnight to treat it as next day.

Results

πŸ”₯ Output

Duration

β€”

β€”

Decimal hours

β€”

Rounded to 4 decimals.

Total minutes

β€”

β€”

Summary

Enter inputs and click Calculate.

Breakdown

Useful for timesheets and shift calculations.

Part Value
Click Calculate to see breakdown.

Explanation

This Time Duration Calculator helps you compute the difference between two times (duration) or add/subtract an interval from a base time. It’s useful for shift planning, timesheets, study sessions, travel timing, and productivity tracking.

Tip: For overnight shifts, enable Cross midnight so the end time is treated as the next day.

Formula

Duration (seconds) = end_seconds βˆ’ start_seconds
If Cross midnight and end < start: end_seconds += 24Γ—3600

FAQs

Cross midnight?

If end time is earlier than start time, enable cross-midnight to treat the end as next day.

Format?

Outputs include HH:MM:SS, decimal hours, total minutes, and total seconds.

Timezones?

Convert both times to the same timezone before comparing if they come from different zones.

Business use?

Perfect for timesheets, shift durations, billing hours, and project tracking.

Precision?

Seconds precision is supported. Milliseconds are not shown to keep the UI simple.