Time Duration Calculator

Calculate the exact time between two clock times, or add and subtract hours and minutes from a starting time. Results include hours and minutes, total minutes, and the decimal hours format used in payroll.

How to Use This Time Duration Calculator

The calculator has two modes. Choose the one that fits your task.

Time Between calculates how long it is between a start time and an end time. This is ideal for working out shift lengths, meeting durations, or how long a task took. If the end time is before the start time the calculator assumes the period crosses midnight and adjusts automatically.

Add or Subtract takes a starting time and adds or removes a number of hours and minutes from it. Use this to find out what time a deadline falls on, when a meeting ends, or what time it will be in another time zone after adding the offset.

The decimal hours output is particularly useful for payroll. Multiply that number by your hourly rate to get an exact payment amount without converting minutes manually.

How to Calculate Time Duration Manually

To find the duration between two times, convert both to minutes from midnight. Then subtract the start from the end.

For example: start time 09:15 equals 9 x 60 + 15 = 555 minutes. End time 17:45 equals 17 x 60 + 45 = 1065 minutes. Duration = 1065 minus 555 = 510 minutes = 8 hours and 30 minutes.

To convert to decimal hours, divide the total minutes by 60. In the example above: 510 / 60 = 8.5 decimal hours. A person working this shift at $20 per hour would earn $20 x 8.5 = $170 before deductions.

For overnight shifts, add 1440 (the number of minutes in a day) to the end time before subtracting. A shift from 22:00 to 06:00 = (6 x 60) + 1440 - (22 x 60) = 360 + 1440 - 1320 = 480 minutes = 8 hours.

Time Calculation Examples

Frequently Asked Questions

How do I calculate hours worked between two times?

Enter the start time and end time in the Time Between tab and click Calculate. The result shows the duration in hours and minutes, the total number of minutes, and the decimal hours value. For payroll just multiply the decimal hours figure by your hourly rate.

Can this calculator handle overnight shifts?

Yes. When the end time is earlier than the start time the calculator automatically adds 24 hours to the end time before calculating. A shift starting at 22:00 and ending at 06:00 is correctly shown as 8 hours, not as a negative number.

What is the decimal hours format used for?

Decimal hours express time as a single number rather than splitting it into hours and minutes. One hour and 30 minutes equals 1.5 decimal hours. Employers use this format because you can multiply it directly by an hourly wage rate to find the gross pay for a shift without additional conversion steps.

Can I add or subtract time with this tool?

Switch to the Add or Subtract tab. Enter a starting time, then enter the hours and minutes to add or remove. Choose whether to add or subtract using the buttons and click Calculate. This is useful for working out what time a task ends or what clock time results from adding a time zone offset.

Why does AM and PM matter so much in time calculations?

The tool uses 24-hour time internally. 3:00 PM is 15:00 in 24-hour format, not 3:00. Entering the wrong AM or PM value shifts your result by exactly 12 hours and is one of the most common errors in manual time calculations. The time input field on modern browsers usually enforces this automatically.

Guides for the Time Duration Calculator

Longer reads on the maths and the practical side of this tool.

Published by the QuixCalc Team. Time calculation logic verified for standard and overnight shifts. Last updated: August 2026.