Time Duration Calculator

Calculate hours and minutes between two times with overnight support.

By Konstantin Iakovlev · Updated April 2026 · Source: TimeAndDate

Overnight Shift

Duration

8h 30m

Decimal Hours

8.50

Time Duration

Hours8
Minutes30
Total Minutes510
Decimal Hours8.50
In Words8 hours and 30 minutes

Use the Time Duration Calculator above to calculate your results. Enter your values and see instant results — all calculations run in your browser.

Disclaimer: This calculator is for informational purposes only and does not constitute tax, financial, or legal advice. Results are estimates based on the information you provide and current rates. Always consult a qualified tax professional or financial advisor for advice specific to your situation.

How It Works

Working out the exact hours and minutes between two clock times sounds trivial until the span crosses midnight. This tool handles that case cleanly, which makes it practical for logging freelance project hours, measuring employee shift lengths in 2026, or just settling how long an event actually ran. Precise durations feed directly into dependable scheduling, accurate billing, and clean payroll for the 2026 fiscal year.

The math starts by converting both the start and end times into a single unit, usually the number of minutes elapsed since a reference point such as midnight. When the end time lands earlier than the start time, that signals an overnight span, so 24 hours (1440 minutes) are added to the end value before the subtraction happens. The resulting difference in minutes is then translated back into hours and leftover minutes to give a readable answer.

A quick word on accuracy: AM/PM selection is the single most common place errors creep in, so verify it before trusting a result. The calculation also assumes one unbroken stretch inside a 24-hour cycle and makes no allowance for breaks or pauses unless you build them into the input times yourself. Durations that genuinely run across several days fall outside its scope, since it reports only the portion within a single 24-hour window and disregards the day count entirely.

Example: Calculating a Late-Night Freelance Project in 2026

  1. 1 A freelance graphic designer starts a project on March 15, 2026, at 10:30 PM and finishes at 1:15 AM on March 16, 2026.
  2. 2 Input Start Time: 10:30 PM, Input End Time: 1:15 AM. The calculator recognizes the overnight span.
  3. 3 The duration is 2 hours and 45 minutes.
  4. 4 This duration represents the billable hours for the designer's late-night work, ensuring accurate invoicing for their client in 2026.

Source: TimeAndDate · Last updated: April 2026

Frequently Asked Questions

How do you calculate hours between two times?
Subtract the start time from the end time. For example, 9:30 AM to 2:45 PM is 5 hours and 15 minutes. If the end time is earlier (overnight shift), add 24 hours to the end time first.
How do you calculate overnight time duration?
For overnight periods, add 24 hours to the end time before subtracting. For example, 10 PM to 6 AM: convert to 22:00 to 30:00 (6:00 + 24), then subtract to get 8 hours.
How do you convert minutes to decimal hours?
Divide the minutes by 60. For example, 45 minutes = 0.75 hours, 30 minutes = 0.50 hours, and 15 minutes = 0.25 hours. This is useful for timesheet calculations and billing.