Time Duration Calculator

Find the exact time between two dates — for shifts, journeys, deadlines and age-style gaps.

Duration

Also equals

How to use it

  1. Pick the start date and time.
  2. Pick the end date and time.
  3. Read the exact duration — days, hours, minutes and seconds.

How it works

Both times are converted to milliseconds since 1 January 1970, subtracted, and the difference is broken into days (÷ 86,400 seconds), hours, minutes and seconds. If you enter the end before the start, the tool swaps them and tells you.

Handy in daily life

Night-shift workers use this to count duty hours across midnight; travellers use it for layovers; freelancers use it to bill hours honestly. It also settles friendly arguments about "how long ago" something happened.

Duration = end time − start time  |  Total seconds = the difference in milliseconds ÷ 1,000  |  Days = total seconds ÷ 86,400  |  1 day = 24 hours = 1,440 minutes = 86,400 seconds

Worked example 1: one working day

The calculator starts with 15 October 2026, 9:00 AM as the start and 15 October 2026, 6:30 PM as the end. From 9:00 AM to 6:30 PM is 9 hours and 30 minutes. In the other units the answer card shows, that same gap is 9.50 hours total, 570 minutes or 34,200 seconds — three ways of writing one duration. The decimal form, 9.50 hours, is the one to copy into a timesheet or invoice.

Worked example 2: across midnight and days

Now a night duty: start 15 October 2026 at 10:00 PM, end 17 October 2026 at 6:30 AM. Count it in pieces — 10 PM to midnight is 2 hours, all of 16 October is 24 hours, and midnight to 6:30 AM is 6 hours 30 minutes. Total: 1 day, 8 hours, 30 minutes, which is 32.5 hours, 1,950 minutes or 117,000 seconds. The calculator does this in one step because it compares the two full date-times, not just the clock faces — crossing midnight or a month boundary makes no difference to it.

Common durations at a glance

DurationIn hoursIn minutesIn seconds
1 hour1603,600
1 day241,44086,400
1 week16810,080604,800
30 days72043,2002,592,000

Adding up several sessions

One gap is easy; a week of shifts is where people slip. The reliable method is to turn every session into decimal hours first — 9 hours 30 minutes becomes 9.5, 7 hours 45 minutes becomes 7.75 — add the decimals, and only turn the total back into hours and minutes at the end (a remainder of 0.25 means 15 minutes, not 25). Run each shift through this calculator, note the "hours total" figure, and add those figures. Freelancers billing by the hour, students logging study time and nurses totalling a duty roster all use exactly this pattern, and it avoids the classic error of treating 1.30 on a calculator display as 1 hour 30 minutes.

Durations you plan real life around

Some gaps come up again and again. A train journey from Delhi to Mumbai takes about 15 to 16 hours; a non-stop flight to London is roughly 9 hours 30 minutes — try both in the calculator using departure and arrival in the same time standard and see why travellers prefer working in one time zone at a time (this calculator compares the date-times exactly as you enter them). Exam candidates use it to check how many full days remain before a paper: enter today and the exam morning, and the days figure becomes the backbone of a revision plan. Project workers count notice periods, warranty windows and medicine courses (a "three times a day for 10 days" medicine course runs from the first dose to the last, ten days later). Whenever two honest date-times define the question, the exact difference — not a rough "about a week" — is what this page gives you.

One habit that prevents most mistakes

Always enter the date along with the time, even when both events fall on the same day. A duration typed as bare clock times invites the classic overnight error — 10 PM to 6 AM read as a negative or a 16-hour gap — while full date-times make the true 8-hour answer automatic.

Frequently asked questions

How do I calculate hours between two times?

Enter both date-times above — the tool shows the exact gap in days, hours, minutes and seconds.

Does it work across midnight?

Yes. A shift from 10 PM to 6 AM correctly shows 8 hours.

What if I enter the end time first?

The tool swaps the order automatically and notes it, so you still get the right duration.

Can I include seconds?

Yes — pick times with seconds in your browser's picker and they are counted.

How many hours are in a full week?

168 hours — 7 days × 24 hours. A week is also 10,080 minutes or 604,800 seconds. Enter Monday 9 AM as the start and the next Monday 9 AM as the end above to see the calculator show it.

How do I get the duration in decimal hours for billing?

Look at the Also equals line under the result — it shows the total hours with decimals, so 9 hours 30 minutes appears as 9.50 hours. That decimal figure is the format most timesheets, payroll sheets and invoices expect.

Does RupayaTools save the values I enter?

No. The Time Duration Calculator calculates everything in your browser, on your own device. The values you enter are not stored on our servers — which is also why the tool works instantly.

What is a common mistake when using the Time Duration Calculator?

Typing a value into the wrong field, or in the wrong format. A quick re-check of each field before you press Calculate avoids most wrong results.