MathMarch 28, 2026

How to Calculate Time Duration: Hours, Minutes & Days Between Dates (2026)

By The hakaru Team·Last updated March 2026

Quick Answer

  • *To find the time between two times, subtract the start from the end after converting both to 24-hour format.
  • *For overnight durations, subtract the start from midnight, then add the end time.
  • *One day = 24 hours = 1,440 minutes = 86,400 seconds.
  • *Business days exclude weekends and holidays — a 5-business-day window usually spans 7 calendar days.

How to Calculate Time Between Two Times (Same Day)

The simplest case: both times fall on the same day. Convert everything to 24-hour format, then subtract.

Say you started a task at 9:15 AM and finished at 2:45 PM. In 24-hour time, that’s 09:15 to 14:45. Subtract: 14:45 − 09:15 = 5 hours 30 minutes.

The cleanest method for mental math is to convert both times to minutes since midnight, subtract, then convert back.

  • 9:15 AM = 9 × 60 + 15 = 555 minutes
  • 2:45 PM = 14 × 60 + 45 = 885 minutes
  • 885 − 555 = 330 minutes = 5 hours 30 minutes

This approach works for any same-day calculation without worrying about AM/PM confusion.

How to Calculate Time Across Days (Overnight and Multi-Day)

Overnight durations trip people up because the end time is numerically smaller than the start time. The fix is simple: treat midnight as the boundary.

Overnight example: Shift starts at 10:30 PM, ends at 6:00 AM.

  • From 10:30 PM to midnight: 24:00 − 22:30 = 1 hour 30 minutes
  • From midnight to 6:00 AM: 6 hours
  • Total: 1h 30m + 6h = 7 hours 30 minutes

For multi-day spans, count the full days first, then handle the partial days at each end. From Tuesday 3:00 PM to Thursday 11:00 AM:

  • Tuesday 3:00 PM to Wednesday 3:00 PM = 24 hours
  • Wednesday 3:00 PM to Thursday 11:00 AM = 20 hours
  • Total: 44 hours

Alternatively, convert both timestamps to total minutes (or seconds) from a common reference point, subtract, and convert back. This is exactly what our time duration calculator does automatically.

Converting Time Units

Time unit conversions come up constantly — project planning, billing by the hour, recipe timing, travel itineraries. The conversion table below covers the most common ones.

FromToMultiply by
MinutesSeconds× 60
HoursMinutes× 60
HoursSeconds× 3,600
DaysHours× 24
DaysMinutes× 1,440
DaysSeconds× 86,400
WeeksDays× 7
YearsDays× 365 (or 365.25)
YearsHours× 8,760

A few numbers worth memorizing: there are 86,400 seconds in a day and 1,440 minutes in a day. Software engineers deal with 86,400 constantly — it’s the basis of Unix timestamps, rate limiting, and caching TTLs.

The Unix Timestamp and Y2K38

The Unix timestamp counts seconds since January 1, 1970 (UTC). It’s used in virtually every programming language and database. At the time of writing, Unix time is well past 1.7 billion.

Here’s an interesting footnote: the maximum value for a 32-bit signed integer is 2,147,483,647. The Unix timestamp will hit that number on January 19, 2038— the so-called Y2K38 problem. Systems still running 32-bit time storage will overflow that day and roll back to 1901. Most modern systems use 64-bit integers, which pushes the overflow date roughly 292 billion years into the future.

The Julian Year

When astronomers calculate how long light takes to travel a distance, they use the Julian year— defined by the International Astronomical Union as exactly 365.25 days, or 31,557,600 seconds. It differs from the calendar year (365 or 366 days) to avoid ambiguity. A light-year is the distance light travels in one Julian year.

Business Days vs Calendar Days

Calendar days count every day on the calendar: Monday through Sunday, including holidays. Business days (also called working days) count only Monday through Friday, excluding public holidays.

The practical gap matters more than most people realize:

  • A 5 business day shipping estimate starting on a Wednesday = delivery the following Wednesday (spanning a weekend)
  • A 30-day contract notice period means 30 calendar days, not 30 business days — read the fine print
  • Bank transfers often settle in 1-3 business days, which can be 3-5 calendar days if initiated on a Thursday
  • Legal deadlines in court filings typically mean business days

There are roughly 261 business days in a standard U.S. calendar year (365 days minus 104 weekend days). Subtract federal holidays (typically 10-11) and you get around 250 working days per year.

Time Duration in Different Contexts

Project Planning

Project managers routinely need to calculate durations in business days, then sanity-check against calendar time. A sprint planned for 10 business days (2 weeks) still spans 14 calendar days. Deadlines that fall on weekends get pushed to Monday.

According to productivity research by DeskTime (2018), the most productive work pattern involves 52 minutes of focused work followed by 17-minute breaks. If you’re scheduling deep work blocks, that’s a useful duration to plan around.

Cooking and Recipes

Recipe timings are almost always in calendar-time minutes, but the implications differ. A 2-hour braise that starts at 6:00 PM finishes at 8:00 PM. A bread recipe that requires an 8-hour overnight rise starting at 10:00 PM is ready at 6:00 AM. Converting to absolute clock times helps avoid mistakes.

Cooking also involves unit conversions: “cook for 90 minutes” = 1 hour 30 minutes = 5,400 seconds. “Rest the meat for half an hour” = 30 minutes = 1,800 seconds. The math is simple, but easy to mix up under pressure.

Travel and Time Zones

Flight duration calculations get complicated because departure and arrival are displayed in local time zones. A flight departing New York at 8:00 PM EST and arriving in London at 8:00 AM GMT the next day: that’s a 5-hour time difference, so the actual flight duration is 8 AM GMT − 8 PM EST = 8 AM GMT − 1 AM GMT = 7 hours.

The trick: always convert both times to a single time zone (UTC is the safest) before calculating duration. This removes daylight saving ambiguity and time zone confusion entirely.

How Americans Actually Spend Their Time

According to the Bureau of Labor Statistics American Time Use Survey (2024), the average American spends:

  • 8.84 hours per day sleeping
  • 8.05 hours per day working or on work-related activities
  • 3.02 hours per day watching TV

That’s nearly 20 hours accounted for across those three activities alone, out of a 24-hour day. The remaining ~4 hours covers eating, socializing, exercise, and everything else. Calculating where your own time goes — in hours per week or per year — can be a useful exercise.

At 8 hours of TV per day (the average American watches roughly 3 hours, but heavy viewers watch more), that’s 2,920 hours per year of TV. At 8,760 hours in a year, that’s one-third of your waking life if you sleep 8 hours a night.

Fun Time Units

Not all time units are conventional. A “jiffy” is an actual unit of time: in electronics, it’s 1/60 or 1/50 of a second (matching the power grid frequency in the U.S. or Europe). In physics, it’s the time it takes light to travel one femtometer — approximately 3×10⁻²⁶ seconds. When someone says “I’ll be back in a jiffy,” they technically mean either 16.7 milliseconds or an unimaginably small fraction of a second.

Calculate any time duration instantly

Use our free Time Duration Calculator →

Need business days? Try our Business Days Calculator

Frequently Asked Questions

How do I calculate the number of hours between two times?

Subtract the start time from the end time. Convert both to 24-hour format first. For example, from 9:00 AM to 5:30 PM: 17:30 minus 9:00 = 8 hours 30 minutes. If the result is negative, add 24 hours (the end time crosses midnight). You can also convert both times to total minutes since midnight, subtract, then divide by 60 to get hours.

How many minutes are in a day?

There are 1,440 minutes in a day. A day has 24 hours, each with 60 minutes: 24 × 60 = 1,440. In seconds, that’s 86,400 (1,440 × 60).

How do I add time durations together?

Add the hours and minutes separately, then convert excess minutes to hours. Example: 2h 45m + 1h 30m = 3h 75m = 4h 15m (since 75 minutes = 1 hour 15 minutes). For multiple durations, convert everything to minutes first, add them all, then convert back: divide by 60 for hours, the remainder is minutes.

What is the difference between business days and calendar days?

Calendar days count every day including weekends and holidays. Business days count only Monday through Friday, excluding public holidays. A 5-business-day window means roughly 7 calendar days if it spans a weekend. Business days matter for contracts, shipping estimates, legal deadlines, and payroll.

How many seconds are in a year?

A standard calendar year (365 days) has 31,536,000 seconds. A leap year (366 days) has 31,622,400 seconds. Astronomers use the Julian year, defined as exactly 365.25 days = 31,557,600 seconds — set by the International Astronomical Union to remove ambiguity in astronomical calculations.

How do I calculate time across midnight?

When an end time is earlier than a start time, the duration crosses midnight. Subtract the start time from 24:00 (midnight), then add the end time. Example: start 10:30 PM (22:30), end 6:00 AM — from 22:30 to midnight is 1h 30m, plus 6 hours to 6:00 AM = 7 hours 30 minutes total.