Free Time Duration Calculator: How to Calculate Time Duration
Whether you are tracking employee hours, billing a client, or simply figuring out how long a meeting ran, knowing how to calculate time duration is a fundamental skill for anyone managing time and work. This guide explains the math behind time duration calculations and gives you a free calculator to do it instantly.
What Is Time Duration?
Time duration is the amount of time that passes between a start point and an end point. It is measured in hours and minutes, or converted to decimal hours for payroll and billing purposes. Calculating time duration accurately is essential for tracking employee work hours, billing clients for services rendered, scheduling shifts, and measuring how long tasks or projects take to complete.
The calculation sounds simple but becomes complicated quickly when AM and PM are involved, when shifts cross midnight, or when you need to convert the result into a decimal format that payroll software can process.
How to Calculate Time Duration
The most reliable method for calculating time duration is to convert both times to a 24-hour format, perform the subtraction, and then convert the result back to hours and minutes if needed.
Step 1: Convert to 24-hour format
Convert both your start and end times to 24-hour format to eliminate AM and PM confusion. For PM times, add 12 to the hour unless the time is already 12:00 PM. For 12:00 AM, use 0:00.
| 12-hour time | 24-hour time |
|---|---|
| 12:00 AM | 0:00 |
| 8:00 AM | 8:00 |
| 12:00 PM | 12:00 |
| 1:30 PM | 13:30 |
| 5:45 PM | 17:45 |
| 11:00 PM | 23:00 |
Step 2: Subtract start from end
Subtract the start time from the end time. Work with the hours and minutes separately. If the minutes in the start time are larger than the minutes in the end time, borrow an hour from the end time's hours and add 60 minutes.
Example: Start 8:45 AM, End 5:15 PM. In 24-hour format that is 8:45 and 17:15. Subtracting gives 8 hours and 30 minutes.
Step 3: Account for overnight shifts
If your end time is earlier than your start time because the shift crosses midnight, add 24 hours to the end time before subtracting. A shift starting at 10:00 PM and ending at 6:00 AM spans 8 hours. In 24-hour format that is 22:00 to 6:00. Adding 24 hours to the end gives 30:00 minus 22:00 equals 8 hours.
Step 4: Convert to decimal hours
To convert hours and minutes to decimal hours, divide the minutes by 60 and add to the whole hours. This is the format most payroll systems and billing tools require.
| Hours and minutes | Decimal hours |
|---|---|
| 1 hour 15 minutes | 1.25 |
| 1 hour 30 minutes | 1.50 |
| 1 hour 45 minutes | 1.75 |
| 2 hours 20 minutes | 2.33 |
| 7 hours 30 minutes | 7.50 |
| 8 hours 45 minutes | 8.75 |
Why Accurate Time Duration Calculations Matter
Errors in time duration calculations have real consequences. In payroll, a miscalculation of 15 minutes per employee per day adds up to over 60 hours of pay errors per employee per year. For a business with 20 employees earning $20 per hour, that is $24,000 in annual payroll mistakes from rounding alone.
For billing, inaccurate time tracking means either undercharging clients or overcharging them. Both outcomes damage your business. Undercharging erodes margins. Overcharging damages client relationships and can result in disputes that take far longer to resolve than the original billing error.
The most common time duration mistakes are forgetting to account for AM and PM when the start and end times cross noon, errors when a shift crosses midnight, and forgetting to subtract unpaid break time from the total duration.
Time Duration for Payroll
Payroll processing requires time duration in decimal hours rather than hours and minutes. Most payroll providers including Gusto, ADP, and Paychex process hours in decimal format. A shift of 8 hours and 30 minutes must be entered as 8.50 hours, not 8:30.
When calculating time duration for payroll, always subtract any unpaid break time from the total duration before converting to decimal. An employee who worked from 9:00 AM to 5:30 PM with a 30-minute unpaid lunch worked 8 hours, not 8.5 hours. The calculator above handles this automatically when you enter your times.
If you are calculating time duration for multiple employees regularly, time tracking software eliminates the manual calculation entirely. Updoot's employee time clock records every clock-in and clock-out automatically, calculates daily and weekly durations, accounts for breaks, and exports payroll-ready decimal hours with one click.
Time Duration for Billing and Client Work
Service businesses, freelancers, and contractors need accurate time duration calculations to bill clients fairly and maintain clear records. The standard approach is to track start and end times for each work session, calculate the duration, convert to decimal hours, and multiply by your hourly rate.
For example, a consultant who worked from 10:30 AM to 2:15 PM on a client project worked 3 hours and 45 minutes, which equals 3.75 decimal hours. At a rate of $150 per hour, the billable amount for that session is $562.50.
Accurate billing records also protect you in disputes. If a client questions an invoice, having precise time duration records with start and end times is far more defensible than estimates or approximate hours.