Country & language

Sets the currency, units and country-specific rules (tax, VAT, salary) in calculators. General tools stay the same.

Pages that are not translated yet open in English.

↑ ↓ to move · Enter to open · Esc to close

Time Duration Calculator

Enter a start and an end time. An end earlier than the start counts as the next day, so night shifts work without extra steps; the advanced options take off a break, count several days, or allow for a time-zone change on a flight.

Quick answer: Turn both times into minutes after midnight and subtract: 9:15 AM is 555 and 5:45 PM is 1,065, so the duration is 510 minutes – 8 hours 30 minutes, or 8.5 decimal hours. If the end is earlier than the start, add 1,440 minutes (one day): 10:00 PM to 6:30 AM is also 8 h 30 min.

Updated · Free · No sign-up

Time Duration Calculator inputs

An end time earlier than the start is treated as the next day.
Break, several days or a time-zone change
min
Unpaid breaks are not working time.
Leave empty to count to the next time the end clock comes round; 0 = same day.
hours
For flights: London is 4 h behind Dubai in winter, so enter −4; Karachi is 1 h ahead, so +1.

Result

9:15 AM to 5:45 PM

8 h 30 min

Hours and minutes8:30
Decimal hours8.5
Total minutes510
Total seconds
30,600
Share of a day
35.42%
Crosses midnight
No

Same start, other end times

End timeDurationDecimal hours
10:15 AM1 h1
11:15 AM2 h2
1:15 PM4 h4
3:15 PM6 h6
5:15 PM8 h8
7:15 PM10 h10
9:15 PM12 h12

The method: everything in minutes after midnight

Clock arithmetic goes wrong because hours have 60 minutes and days have 24 hours. The cure is to turn each time into one number – minutes after midnight – do the subtraction, and turn the answer back into hours and minutes.

Minutes = hours × 60 + minutes (24-hour clock)  ·  Duration = end − start, + 1,440 if negative  ·  Decimal hours = minutes ÷ 60

9:15 AM is 9 × 60 + 15 = 555; 5:45 PM is 17:45, or 1,065. The difference is 510 minutes: 8 hours 30 minutes, 8.5 decimal hours. The calculator shows all three, plus seconds.

Four situations, worked through

Across midnight

A night shift from 10:00 PM to 6:30 AM gives 390 − 1,320 = −930 minutes. Negative means the end is on the next day, so add 1,440: 510 minutes, 8 h 30 min – the same length as a 9:15-to-5:45 day.

A shift with a break

From 7:00 AM to 7:00 PM is 12 hours start to finish. Take off a 1-hour unpaid break and you have 11 hours worked. In Saudi Arabia, 12 hours is also the most a worker may spend at the workplace in a day, breaks included, so this shift sits right on the limit; a weekly time card with overtime is easier in the hours calculator.

A flight that changes time zones

The departure time is on one clock and the arrival time on another, so the clock difference is not the flight time. Leave Dubai at 2:30 PM and land in London at 6:20 PM in winter: the clocks say 3 h 50 min, but London is 4 hours behind, so the flight took 3 h 50 min + 4 h = 7 h 50 min. Going east the change works the other way: Riyadh 1:30 AM to Mumbai 8:15 AM is 6 h 45 min on the clocks, minus India’s 2½ hours’ lead, = 4 h 15 min. Enter the arrival clock’s lead (+) or lag (−) in the time-zone box.

More than a day

Two clock times alone can only be up to 23 h 59 min apart. Tell the calculator how many days later the end falls: 8:00 AM to 5:30 PM two days later is 2 × 1,440 + 570 = 3,450 minutes – 57 h 30 min, or 2 days 9 h 30 min.

Time-zone changes from the Gulf

None of the Gulf states use daylight saving time, so the offset from the Gulf only changes when the other country moves its clocks. Enter the arrival city’s difference from your departure city:

Arrival cityFrom Dubai / Abu Dhabi (UTC+4)From Riyadh / Doha / Kuwait (UTC+3)
London – winter (GMT)−4−3
London – summer (BST)−3−2
Riyadh, Doha, Kuwait, Manama−10
Dubai, Abu Dhabi, Muscat0+1
Karachi, Lahore (UTC+5)+1+2
Mumbai, Delhi (UTC+5:30)+1.5+2.5
Manila (UTC+8)+4+5

UK summer time runs from the last Sunday in March to the last Sunday in October; it ended on 25 October 2026 and starts again on 28 March 2027. For cities with their own seasonal changes, such as Cairo or New York, check the offset for your travel date in the time zone converter.

Minutes to decimal hours

MinutesDecimalMinutesDecimal
50.0833300.5
100.1667400.6667
150.25450.75
200.3333500.8333

Payroll and invoices use decimal hours: 7 h 50 min at 40 an hour is 7.8333 × 40 = 313.33, not 7.50 × 40.

Break rules that change the hours worked

  • UAE: after 5 consecutive hours you are owed breaks totalling at least 1 hour, and they are not working time (Federal Decree-Law 33 of 2021, Article 18 – Article 17 sets the normal 8-hour day).
  • Saudi Arabia: a break of at least 30 minutes for rest, prayer and meals after 5 consecutive hours, and no more than 12 hours at the workplace in a day (Labor Law, Article 101); the breaks are not working time (Article 102).
  • United States: rest breaks of 5 to 20 minutes are paid working time; bona fide meal periods, normally 30 minutes or more, are not (29 CFR 785.18–785.19).

Common mistakes

  • Mixing up 12:00 AM and 12:00 PM – 12:00 AM is midnight, 12:00 PM is noon.
  • Writing 7 h 50 min as 7.50 hours; it is 7.83.
  • Subtracting minutes without borrowing an hour: 14:10 − 9:45 is 4 h 25 min, not 5 h 35 min.
  • Reading a flight’s duration off the clocks without the time-zone change – or using the summer offset in winter.
  • Taking a paid rest break off a timesheet, or forgetting an unpaid meal break.

Other tools for related questions

For a week of shifts with pay and overtime, use the hours calculator; to turn a duration into decimal hours only, the time to decimal converter; for the number of days between two dates, the date difference calculator.

Frequently asked questions

How do I calculate the time between two times?

Convert each time to minutes after midnight (hours × 60 + minutes), subtract the start from the end and convert back. 9:15 AM = 555 and 5:45 PM = 1,065, so the gap is 510 minutes, or 8 h 30 min.

How many hours is 9 AM to 5 PM?

Eight hours. With a one-hour unpaid lunch it is 7 hours of work, or 35 hours over a five-day week.

How do I calculate time across midnight?

Add 24 hours to the end time before subtracting. 10:00 PM (22:00) to 6:30 AM becomes 30:30 − 22:00 = 8 h 30 min; the calculator does this whenever the end is earlier than the start.

How do I convert a duration to decimal hours?

Divide the minutes by 60 and add them to the hours: 7 h 50 min is 7 + 50 ÷ 60 = 7.8333 hours, and 8 h 45 min is 8.75. Timesheets and payroll multiply the decimal figure by the hourly rate.

How do I subtract a break from a shift?

Work out the span, then take off unpaid breaks. 7:00 AM to 7:00 PM with a 1-hour break is 12 hours on site but 11 hours of work. In the US, meal breaks of 30 minutes or more are usually unpaid, while rest breaks of 5 to 20 minutes count as work time (29 CFR 785.18–785.19).

How do I work out a flight’s duration across time zones?

Subtract the departure time from the local arrival time, then take off the time-zone change. Leaving Dubai at 2:30 PM and landing in London at 6:20 PM in winter, when London is 4 hours behind, is 3 h 50 min on the clocks but 7 h 50 min in the air.

Can I calculate a duration longer than 24 hours?

Yes – say how many days later the end falls. 8:00 AM to 5:30 PM two days later is 57 h 30 min, or 2 days 9 h 30 min. For spans of weeks or months, a date difference calculator is quicker.

How long must a break be in the UAE and Saudi Arabia?

In the UAE, nobody may work more than 5 consecutive hours without breaks totalling at least 1 hour, which are not counted as working time. In Saudi Arabia the break is at least 30 minutes after 5 hours, and time at the workplace may not exceed 12 hours a day.

What changed

  • – Page fully reviewed: the calculator can now subtract a break, count an end time several days later (durations over 24 hours) and allow for a time-zone change, so flight times come out right. Old links work unchanged.
  • – UK clocks went back to GMT: London is again 4 hours behind the UAE and 3 behind Saudi Arabia until 28 March 2027.

Sources

Last reviewed: · Reviewed by Chelsea, CalcBright's animated guide, for the CalcBright editorial team · How we check our numbers