Premium Converters
Loading
Loading
Loading
Calculate elapsed time between two clock times in hours, minutes, total minutes, and decimal hours — with automatic overnight crossings for night shifts, payroll, and freelance billing.
Date & Time
Generated on May 23, 2026
Calculate elapsed time between two clock times in hours, minutes, total minutes, and decimal hours — with automatic overnight crossings for night shifts, payroll, and freelance billing.
A time duration calculator finds the elapsed time between two clock times (for example, 9:00 AM to 5:30 PM). It handles overnight crossings automatically — if the end time is numerically earlier than the start, the tool assumes the duration spans midnight and adds 24 hours accordingly. Results are shown in hours-and-minutes format, total minutes, and decimal hours (which is how payroll systems, billing software, and time-tracking apps typically want the data).
Formula
Duration = End Time − Start Time. If End < Start, add 24 hours to treat as an overnight crossing.Two common scenarios bring people here: a freelancer in Lahore reconciling hours billed across three clients in three time zones, and a night-shift nurse at Aga Khan trying to fill in a timesheet that asks for decimal hours instead of HH:MM. Both are surprisingly fiddly without a calculator because clock arithmetic doesn't follow normal rules — you can't just subtract '6:00 AM' from '10:00 PM' and get a sensible answer. The tool handles overnight crossings automatically (10 PM to 6 AM cleanly becomes 8 hours, not negative 16), accepts both 24-hour and 12-hour input depending on your device locale, and gives you the answer in three formats: HH:MM (how humans think about it), total minutes (how some legal billing systems want it), and decimal hours (what every payroll and invoicing system expects). Decimal is the format that makes hourly-rate math easy — 8.5 hours times your rate, one step, done. The classic Pakistani freelance scenario: 10:30 AM to 1:15 PM on a UI design task, then 2:00 PM to 6:45 PM on copy review for a Dubai client, both billed at different rates. Calculate each block separately, multiply by the relevant rate, and you have a clean invoice line. Honest take: most billable-time disputes between freelancers and clients come down to one party calculating in HH:MM and the other in decimal — get into the habit of always presenting decimal hours with two decimal places (7.75, not 7:45) and most arguments evaporate.
A time duration calculator finds the elapsed time between two clock times (for example, 9:00 AM to 5:30 PM). It handles overnight crossings automatically — if the end time is numerically earlier than the start, the tool assumes the duration spans midnight and adds 24 hours accordingly. Results are shown in hours-and-minutes format, total minutes, and decimal hours (which is how payroll systems, billing software, and time-tracking apps typically want the data). Indispensable for timesheets, parking tickets, work-shift tracking, and freelance time billing.
Both times are converted to 'total minutes past midnight' for clean arithmetic. If the numerical end time is earlier than the start (for example, 22:00 start and 06:00 end), the calculator adds 24 × 60 = 1,440 minutes to treat the duration as crossing midnight — essential for correct night-shift and overnight-stay calculations. The final duration is then split back into hours and minutes for display, along with the decimal-hours equivalent used in payroll.
Typical work-shift durations with their hours-minutes, total minutes, and decimal-hour equivalents for payroll.
| Shift | HH:MM | Total Minutes | Decimal Hours |
|---|---|---|---|
| 9 AM – 5 PM (standard) | 8:00 | 480 | 8.00 |
| 9 AM – 5:30 PM (US) | 8:30 | 510 | 8.50 |
| 9 AM – 6 PM (PK/IN) | 9:00 | 540 | 9.00 |
| 8 AM – 4 PM (early) | 8:00 | 480 | 8.00 |
| 10 PM – 6 AM (night) | 8:00 | 480 | 8.00 |
| Half day (4 hrs) | 4:00 | 240 | 4.00 |
| Long day (11 hrs) | 11:00 | 660 | 11.00 |
| Freelance 2-hr block | 2:00 | 120 | 2.00 |
| 45-minute meeting | 0:45 | 45 | 0.75 |
Standard Pakistani office: 9 AM – 6 PM = 9 hours (includes 1-hour lunch break, so 8 productive hours).
US standard 'full-time': 40 hours/week = 5 × 8-hour shifts.
Freelance billing unit: most commonly 15-minute increments (0.25 decimal hours).
Healthcare night shifts are typically 12 hours × 3 days/week — decimal hours 12.0 per shift.
A 9:00 AM to 5:30 PM workday equals 8 hours and 30 minutes, or 510 minutes, or 8.5 decimal hours — the format payroll systems expect.
A 10 PM to 6 AM night shift equals 8 hours with automatic overnight crossing — no manual math required.
A 2:15 PM to 2:45 PM short meeting duration of exactly 30 minutes is confirmed instantly.
A long day from 6:00 AM to 11:45 PM totals 17 hours 45 minutes (17.75 decimal hours) — useful for travel day logs.
Parking from 9:45 AM to 3:10 PM is 5 hours 25 minutes — perfect for verifying parking attendant charges.
Freelance work from 10:30 AM to 1:15 PM plus 2:00 PM to 6:45 PM totals 7 hours 30 minutes of billable time across two sessions.
Jump to a ready-made conversion — useful for quick reference and sharing:
Age Calculator
Calculate exact age in years, months, and days from any date of birth, plus total days lived, the day of the week you were born, and days until your next birthday.
Date Difference Calculator
Find the exact difference between any two dates expressed in years, months, weeks, days, hours, and minutes — ideal for project timelines, contract terms, and genealogy.
Working Days Calculator
Count business days between two dates, excluding Saturdays and Sundays, with customizable workweeks (Mon–Fri, Mon–Sat, or Sun–Thu) for HR leave tracking and T+3 settlement.
Countdown Timer
Live countdown to any future date and time, ticking down in days, hours, minutes, and seconds — perfect for weddings, exam dates, product launches, Ramadan, and Eid.
Add / Subtract Days Calculator
Add or subtract any number of days, weeks, months, or years from any starting date with automatic handling of leap years, month-end rollovers, and Net-30 invoice terms.
Time Zone Converter
Convert times across PKT, EST, GMT, IST, JST, GST, and any other world time zone with automatic Daylight Saving adjustments — ideal for scheduling international meetings.
Pomodoro Timer
Focus timer with 25-min work sessions, 5-min breaks, and a long break every 4 cycles. Customizable durations + sound.
World Clock & Meeting Planner
Side-by-side clocks for cities worldwide. Plan meetings across time zones with live work-hours indicators.
Browse all Date & Time calculators & converters
See every tool in this category, plus FAQs and category-specific guides.