What is a time duration calculator?
A time duration calculator works with lengths of time themselves: it finds the duration between two clock times, adds durations together, subtracts one duration from another, totals a list of durations, and converts any duration into decimal hours, total minutes and total seconds. A duration is not a moment. 17:45 is a moment, a reading on a clock. 8 hours 30 minutes is a duration, a length. Most everyday time questions are really duration questions wearing clock clothes: how long was the shift, how much footage have I shot, how long did the whole playlist run, how many hours did I actually study this week. This page answers all of them in one workbench, with four modes that share a single honest method.
That method is worth stating up front, because it is the reason the results can be trusted. Every input, whether it is a clock time or a duration, is converted to a single number of seconds. The arithmetic, one subtraction, one addition, or a column of additions, happens in seconds, where there is no borrowing in sixties and no carrying across midnight to get wrong. Only at the end is the answer converted back into hours, minutes and seconds, and into the decimal and total forms. Hand arithmetic fails at exactly the steps this method removes: borrowing an hour as 60 minutes, carrying 75 seconds as 1 minute 15, and remembering that an overnight span needs a whole extra day. The calculator never has to remember any of that, because in seconds none of it arises.
The page is built around six worked examples, and the calculator panel checks itself against all six in a table you can see. They are: 09:15 to 17:45 is 8:30:00, which is 8.5 hours and 510 minutes; 22:30 to 06:15 the next day is 7:45:00; 2:45:30 plus 1:20:45 is 4:06:15; 5:00:00 minus 1:45:30 is 3:14:30; the list 1:30, 2:45 and 0:50 sums to 5:05:00; and 1:30:00 converts to 1.5 hours, 90 minutes and 5,400 seconds. If those six check out by hand, and each section below shows the hand working, then every other input follows the same arithmetic and can be trusted the same way.
Duration calculator vs time difference calculator
FreeSoftis already publishes a Time Difference Calculator, and honesty requires saying plainly how this page differs, because the two are close cousins and neither pretends to be the other. The Time Difference Calculator does one job: the difference between two clock times, with same-day, next-day, extra-days and full-date handling. If your question begins and ends with two readings on a clock, that page is the focused tool, and mode 1 of this page will give you the identical answer for the same pair of times.
This page exists for everything after that first subtraction. Real duration work rarely stops at one gap. A timesheet is a list of daily durations that must be summed. A video project is clips that must be added. A training plan is sessions to total and a target duration to subtract from. A bill is a duration that must become a decimal before it can be multiplied by a rate. Those are duration-arithmetic jobs, not clock-reading jobs, and they are what modes 2, 3 and 4 are for. Pitching this page as a second copy of the difference tool would be dishonest; it is the workbench that starts where the difference tool stops, and the cross-links on both pages say so in both directions.
How the four modes work
All four modes run the same three-step engine. First, parse: a clock time such as 09:15 becomes 33,300 seconds since midnight, and a duration such as 2:45:30 becomes 9,930 seconds. Second, calculate: mode 1 subtracts with a day added when the span crosses midnight, mode 2 adds or subtracts two totals, mode 3 adds a whole list, and mode 4 simply takes its single total as the answer. Third, present: the total seconds are read back as hours, minutes and seconds, as decimal hours rounded to four places, as total minutes and as total seconds. Because every output comes from one total, the outputs can never contradict each other.
One distinction runs through the whole page and is worth learning once. In mode 1 the hours are clock hours, 0 to 23, because they are readings. In modes 2, 3 and 4 the hours are counts, with no upper limit, because they are lengths. A duration of 30:00:00 is perfectly meaningful, thirty hours of recorded audio, say, while a clock time of 30:00 does not exist. The calculator enforces the clock limit only where a clock is actually involved, and leaves duration hours free to grow, which is why a summed week of shifts or a library of clips totals correctly instead of wrapping around at 24.
Everything runs in your own browser. No time or duration you type is sent anywhere, stored anywhere or attached to any account, because there is no account and no server-side step in the calculation at all.
Mode 1: duration between two clock times
Mode 1 is the familiar subtraction, done the reliable way. Convert the start to minutes since midnight: 09:15 is 9 times 60 plus 15, which is 555 minutes. Convert the end the same way: 17:45 is 1,065 minutes. Subtract: 1,065 minus 555 is 510 minutes. Read it back: 510 divided by 60 is 8 hours with 30 minutes left over, so the duration is 8 hours 30 minutes, 8:30:00, which is 8.5 decimal hours and 30,600 total seconds. Every figure in that sentence is one of the numbers the calculator shows, and each can be reproduced with a pencil.
Overnight spans are the case that breaks naive subtraction, because the end reading is smaller than the start reading. The fix is to admit that the end belongs to the next day and add a full day before subtracting. From 22:30 to 06:15 the next day: add 24 hours to 06:15 to get 30:15 in extended hours, subtract 22:30, and the duration is 7:45:00. Split at midnight as a check: 22:30 to midnight is 1 hour 30 minutes, midnight to 06:15 is 6 hours 15 minutes, and the parts add to 7 hours 45 minutes, 465 total minutes, 27,900 total seconds and 7.75 decimal hours. Two routes, one answer. Night shifts, overnight travel on a single clock, and sleep spans are the everyday uses, and the next-day setting is the only extra step they need.
The borrowing case sits between the two examples. From 09:50 to 17:20 the minutes cannot be subtracted directly, since 20 is smaller than 50. On paper you borrow an hour, turning 17:20 into 16:80, and get 7 hours 30 minutes. In seconds the borrowing never appears as a separate step at all, which is the practical argument for the method: the awkward case and the easy case are the same code path, so there is no special case left to get wrong.
Mode 2: add and subtract durations
Adding durations is where carrying in sixties earns its keep. Worked example: 2:45:30 plus 1:20:45. Seconds first: 30 plus 45 is 75, which is 1 minute carried and 15 seconds kept. Minutes next: 45 plus 20 plus the carried 1 is 66, which is 1 hour carried and 6 minutes kept. Hours last: 2 plus 1 plus the carried 1 is 4. The sum is 4:06:15, or 14,775 total seconds and 246.25 total minutes. Notice that the carries happen twice in one short sum; a person adding quickly in decimal habits will write 3:65:75 and then have to repair it, while the seconds method produces 4:06:15 directly.
Subtraction is the mirror image, with borrowing instead of carrying. Worked example: 5:00:00 minus 1:45:30. The seconds cannot be taken directly, so borrow a minute: 60 minus 30 leaves 30 seconds, and the minutes fall to 59. Then 59 minus 45 is 14 minutes, and the hours, now 4 after the borrow chain, minus 1 is 3. The result is 3:14:30, or 11,670 total seconds and 194.5 total minutes. Remaining-time questions are the natural home of this mode: how much of a five-hour budget is left after 1:45:30 of use, how long until a target is reached, how much longer one recording runs than another.
One honest behaviour deserves its own paragraph. If the duration being subtracted is larger than the duration it is taken from, the true answer is negative, and this calculator says so instead of quietly swapping the pair or wrapping the result. A negative remainder is real information, an overrun, a shortfall, a budget exceeded, and disguising it as a positive number would be a small dishonesty with practical consequences. The message shows the size of the shortfall, and swapping the inputs gives the positive gap if that is what you wanted.
Mode 3: sum a list of durations
Mode 3 generalises mode 2 from two durations to as many as you paste in, one per line. The worked example is deliberately small so it can be checked in your head: 1:30 plus 2:45 plus 0:50. In minutes that is 90 plus 165 plus 50, which is 305 minutes, and 305 minutes is 5 hours 5 minutes, 5:05:00, or 18,300 total seconds. The calculator reports how many lines it counted alongside the total, because the commonest list error is not arithmetic at all, it is a missing or duplicated line, and a count lets you catch it at a glance.
The real-world lists are longer and less tidy. A week of shift durations, each already net of breaks or not, totals into the weekly figure payroll actually pays. A season of podcast episodes, a course made of lesson videos, a training block made of daily sessions, a project made of timed tasks: all of them are one paste into mode 3. Two habits keep list sums honest. First, keep every line in the same shape, hours and minutes at least, so a stray entry stands out. Second, compare the counted-lines figure against the number of items you expected before trusting the total; the arithmetic will be right, but only for the list you actually gave it.
Long lists also show why duration hours must be free to exceed 24. A forty-hour week, a sixty-hour course and a hundred-hour archive are ordinary totals, and a tool that wrapped them at a day boundary would be useless for exactly the jobs mode 3 exists to do.
Mode 4: convert a duration to decimal
Mode 4 takes one duration and lays out all of its forms side by side, and its worked example is the one to memorise: 1:30:00 is 1.5 decimal hours, 90 total minutes and 5,400 total seconds. The conversions are divisions and multiplications of the same total: decimal hours are total seconds divided by 3,600, total minutes are total seconds divided by 60, and total seconds are the total itself. Quarter hours anchor the decimal scale and are worth knowing cold: 15 minutes is 0.25, 30 minutes is 0.5 and 45 minutes is 0.75. Minutes that are not quarters produce repeating decimals, 10 minutes is 0.1667 and 20 minutes is 0.3333 to four places, and this page shows four places so that a week of converted durations still totals honestly.
Decimal hours matter because money and plans are decimal even though clocks are not. An hourly rate multiplies a decimal, not a colon-separated reading; a project estimate adds decimals; a spreadsheet sums a column of decimals without borrowing in sixties. The classic payroll error is treating 8:30 as 8.30 hours, which underpays by twelve minutes per shift and compounds across a rota. Converting first, with a tool that shows the clock form and the decimal form together so each checks the other, removes that error at the source.
Worked examples table
Every verified example on this page, in one table. Each row was calculated with the stated seconds method and can be reproduced by entering the same inputs above. Breaks are never deducted automatically in any mode: each figure is the full duration as entered, so subtract your own unpaid break before using a mode 1 figure for pay.
| Calculation | Mode | Result (H:MM:SS) | Decimal hours | Total minutes | Total seconds |
|---|---|---|---|---|---|
| 09:15 to 17:45 | Between times | 8:30:00 | 8.5 | 510 | 30,600 |
| 22:30 to 06:15 next day | Between times | 7:45:00 | 7.75 | 465 | 27,900 |
| 2:45:30 + 1:20:45 | Add | 4:06:15 | 4.1042 | 246.25 | 14,775 |
| 5:00:00 - 1:45:30 | Subtract | 3:14:30 | 3.2417 | 194.5 | 11,670 |
| 1:30 + 2:45 + 0:50 | Sum list | 5:05:00 | 5.0833 | 305 | 18,300 |
| 1:30:00 converted | Convert | 1:30:00 | 1.5 | 90 | 5,400 |
| 09:00 to 17:00 | Between times | 8:00:00 | 8 | 480 | 28,800 |
| 20:00:00 + 10:00:00 | Add | 30:00:00 | 30 | 1,800 | 108,000 |
Two patterns are worth noticing. First, the overnight row and the daytime row use identical arithmetic once the extra day is admitted; the day handling, not a different formula, is what makes the night row work. Second, the last row passes 24 hours without ceremony, because in the duration modes hours are a count. A table that mixed those two ideas up would be teaching the wrong lesson, so they sit side by side here on purpose.
Reading your result: clock, decimal and totals
The headline result is the clock format, hours, minutes and seconds, the way you would say the duration out loud. Under it sit three totals, each with its own job. Decimal hours are the payroll, invoicing and planning number, ready to multiply by a rate or add across a week. Total minutes are the unit of schedules, lessons and appointments. Total seconds are the unit of timing, media and logs, and are exact whenever you entered seconds yourself. In the add, subtract and sum modes the breakdown panel also restates your inputs and the operation performed, so a copied result carries its own working with it.
Read at least two formats before using any of them. They are conversions of one another, so they act as a built-in audit: 7:45:00, 7.75 hours, 465 minutes and 27,900 seconds are the same overnight duration, and a figure pasted into a timesheet that does not convert back to the clock reading you remember was copied wrongly somewhere. Catching that here is cheaper than catching it on a payslip, an invoice or a published runtime.
Common uses: timesheets, editing, training and study
Timesheets use all four modes in sequence, which is really why this page exists as one workbench. Mode 1 turns clockings into daily durations, mode 3 totals the week, mode 2 subtracts a break allowance or compares against contracted hours, and mode 4 turns the final figure into the decimal payroll needs. Doing those four steps in four separate tools invites transcription errors at every hand-off; doing them on one page, where each result can feed the next by retyping a single checked figure, keeps the chain short.
Media work is the second home of duration arithmetic. Editors add clip lengths to predict a finished runtime, podcasters total segments against a target episode length and subtract an overrun, musicians add track times for a set list or an album side, and anyone assembling a playlist for a timed event, a class, a drive, a workout, is summing durations whether they call it that or not. Training and study follow the same shape: sessions are durations, weeks are sums, plans are targets minus what is already done, and progress is a decimal of hours logged. In every case the arithmetic is simple and the volume is the problem, which is precisely the combination a calculator is for.
What this calculator cannot do
Honesty about limits is part of the tool. This calculator does not convert between time zones and has no city database; mode 1 assumes both times come off the same clock, and the duration modes deal in lengths of time, which have no zone at all. It does not know about daylight saving changes: on a clock-change night the clock-reading difference and the real elapsed time differ by exactly one hour, and for payroll, legal or medical records covering that night you should follow local rules rather than any calculator. It does not subtract breaks, apply overtime or rounding policies, or judge whether a shift pattern is lawful or safe. It does exact duration arithmetic, shows its working, and stops there, and the exact figures it gives are the right foundation for the human decisions built on top of them.
Sources and References
- National Institute of Standards and Technology (NIST) - Time and Frequency Division, the United States time standards authority
- timeanddate.com - Time zone, clock and time information resources
- timeanddate.com - Date Duration Calculator, the length of spans between dates
- Wikipedia - Time, its measurement and units
- Wikipedia - Duration, a span of time and how it is expressed
- Wikipedia - 24-hour clock, the notation mode 1 uses for clock readings
- Wikipedia - 12-hour clock, AM and PM conventions including noon and midnight
Every figure in this guide was calculated with this page own stated method of converting to total seconds, calculating, and converting back, so you can reproduce each one exactly by entering the same inputs above. All seven sources above returned HTTP 200 when checked with curl at publication, and exactly seven sources are listed. No source needed substitution.