Date & Time tool

Time Duration Calculator

The Time Duration Calculator measures how much time passes between two timestamps. Enter a start and an end date with times and the tool reports the elapsed duration broken down into days, hours, minutes and seconds, plus convenient totals such as decimal hours for payroll.

It is ideal for shift lengths, flight times, study sessions, server outages or anything else you need to total precisely. Because it accepts full dates as well as times, overnight and multi-day spans are handled correctly - a shift from 22:00 to 06:00 correctly returns 8 hours rather than a negative number. For calendar-day counts without times, use the Date Calculator.
Calculator

How to use the Time Duration Calculator

  1. Set the start date and time.
  2. Set the end date and time.
  3. Read the duration broken into days, hours, minutes.
  4. Copy the decimal-hours figure for timesheets or invoices.

About this tool

The Time Duration Calculator is built for speed and accuracy: every calculation runs in your browser, so your data never leaves your device and the result updates as you type. It works equally well on a phone, a tablet or a desktop, and it is free to use as many times as you like.

Common use cases

  • Calculating shift length for payroll.
  • Measuring flight or travel time.
  • Totaling study or workout sessions.
  • Logging incident or downtime duration.

Tips for the best result

  • Use the latest figures you have - even a small change in rate or term can shift the outcome by hundreds.
  • For annual figures, divide by 12 to get a monthly number you can compare with the result.
  • Bookmark this page and revisit the calculation as the inputs change.

Frequently asked questions

Does it handle overnight times?

Yes, because both fields include a date. Set the end date to the following day for an overnight span.

Can I get decimal hours for invoicing?

Yes. The "Total hours" result is decimal, so you can multiply it directly by your hourly rate.