Skip to main content
Bethemesh
GuideConcepts and technologies

Durations and time: calculate, convert and handle midnight crossings

Understand the difference between a clock time and a duration, calculate intervals between times, and convert seconds, minutes, hours, days and weeks.

Published 28 August 2026Reading : 3 minBy Bethemesh Team
Beginner
Show contents
  1. Calculate the duration between two times
  2. Why convert clock times to minutes first?
  3. What happens when the period crosses midnight?
  4. Hours and minutes versus decimal hours
  5. Convert seconds, minutes, hours, days and weeks
  6. Why duration conversion differs from date arithmetic
  7. Practical examples
  8. Which tool should you choose?

A clock time and a duration often use the same units, but they do not represent the same thing. 14:30 identifies a moment in the day. 2 h 30 min describes an interval.

That distinction becomes essential when calculating the time between two clock times, converting minutes to hours, or interpreting a period that crosses midnight.

Bethemesh provides two complementary tools: the Time Duration Calculator to measure an interval between clock times and the Duration Converter to convert one unit of time to another.

Calculate the duration between two times

For two times in the same day, subtract the start time from the end time.

Example: from 08:45 to 17:30, 8 hours and 45 minutes elapse.

The Time Duration Calculator performs this calculation automatically and also displays the total in minutes and decimal hours.

Each representation is useful for a different purpose.

Why convert clock times to minutes first?

A convenient method is to turn each clock time into the number of minutes elapsed since midnight.

For 08:45: 8 × 60 + 45 = 525 minutes.

For 17:30: 17 × 60 + 30 = 1,050 minutes.

The difference is 525 minutes, or 8 hours and 45 minutes.

This method avoids borrowing mistakes between hours and minutes.

Calculate a duration between two times.

What happens when the period crosses midnight?

Consider a start at 22:30 and an end at 01:15.

If both values were interpreted in the same day, the end would appear earlier than the start. For a continuous duration, the natural interpretation is that 01:15 belongs to the next day.

There are 1 h 30 min from 22:30 to midnight, then another 1 h 15 min to 01:15, for a total of 2 h 45 min.

Bethemesh automatically handles this case when the end time is earlier than the start time. This is useful for night work, travel or any activity continuing past midnight.

Hours and minutes versus decimal hours

8 h 30 min does not mean 8.30 h.

Because an hour contains 60 minutes, 30 minutes represent half an hour: 30 / 60 = 0.5.

Therefore 8 h 30 min = 8.5 h.

Likewise, 15 minutes = 0.25 h, 30 minutes = 0.5 h and 45 minutes = 0.75 h.

Decimal hours are convenient for arithmetic, spreadsheets and totals, while hours-and-minutes notation is often easier to read.

Convert seconds, minutes, hours, days and weeks

The Duration Converter converts between seconds, minutes, hours, days and weeks.

The basic relationships are:

  • 1 minute = 60 seconds;
  • 1 hour = 60 minutes = 3,600 seconds;
  • 1 day = 24 hours;
  • 1 week = 7 days = 168 hours.

For example, 90 minutes = 1.5 hours, and 2 days = 48 hours = 2,880 minutes.

The interface can swap the source and target units instantly.

Open the Duration Converter.

Why duration conversion differs from date arithmetic

A duration in seconds or hours is a continuous quantity. Calendar arithmetic in months or years depends on the calendar.

48 hours = 2 days is a direct conversion in the converter’s model. But one calendar month cannot universally be replaced by a fixed number of days.

To add three months to a date, use Add or Subtract Time from a Date. To measure the gap between two calendar dates, use the Date Difference Calculator.

Practical examples

To convert 150 minutes to hours, divide by 60: 150 / 60 = 2.5 hours, which is 2 hours and 30 minutes.

To convert 36 hours to days, divide by 24: 36 / 24 = 1.5 days.

For a period from 23:10 to 02:40, the interval crosses midnight. There are 50 minutes to midnight and another 2 h 40 min after midnight, for a total of 3 h 30 min.

Test a period that crosses midnight.

Which tool should you choose?

Use the Time Duration Calculator when you have two clock times and need the interval between them.

Use the Duration Converter when you already have a quantity of time and only need to change its unit.

If the problem involves calendar days, deadlines, months or years, read Date calculations: differences, deadlines, business days and calendar arithmetic.

Related tools

Dates & time
Beta

Time Duration Calculator

Calculate the duration between a start time and an end time.

100% localNew
Use this tool
Dates & time
Beta

Duration Converter

Convert seconds, minutes, hours, days and weeks.

100% localNew
Use this tool

Was this article useful?