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.
Not rated yet · Updated · Free · No sign-up
Time Duration Calculator inputs
Result
9:15 AM to 5:45 PM
8 h 30 min
| Hours and minutes | 8:30 |
| Decimal hours | 8.5 |
| Total minutes | 510 |
- Total seconds
- 30,600
- Share of a day
- 35.42%
- Crosses midnight
- No
Calculated with CalcBright – https://calcbright.com/time-duration-calculator on
Same start, other end times
| End time | Duration | Decimal hours |
|---|---|---|
| 10:15 AM | 1 h | 1 |
| 11:15 AM | 2 h | 2 |
| 1:15 PM | 4 h | 4 |
| 3:15 PM | 6 h | 6 |
| 5:15 PM | 8 h | 8 |
| 7:15 PM | 10 h | 10 |
| 9:15 PM | 12 h | 12 |
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 city | From 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 | −1 | 0 |
| Dubai, Abu Dhabi, Muscat | 0 | +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
| Minutes | Decimal | Minutes | Decimal |
|---|---|---|---|
| 5 | 0.0833 | 30 | 0.5 |
| 10 | 0.1667 | 40 | 0.6667 |
| 15 | 0.25 | 45 | 0.75 |
| 20 | 0.3333 | 50 | 0.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
- UAE Federal Decree-Law No. 33 of 2021 on the Regulation of Labour Relations, Articles 17 (working hours) and 18 (consecutive working hours)
- Saudi Labor Law (Royal Decree No. M/51 of 1426 AH), Articles 101 and 102, as amended
- 29 CFR 785.18–785.19 – rest and meal periods (eCFR)
- GOV.UK – When do the clocks change?
- IANA Time Zone Database
Last reviewed: ·
Reviewed by Chelsea, CalcBright's animated guide, for the CalcBright editorial team · How we check our numbers
Rate the Time Duration Calculator
Only the average star rating is shown. Error reports go straight to our inbox so we can check and fix them. See our Methodology and privacy policy.