Time calculator

Add and subtract hours, or find the time between a start and an end. Everything is calculated in this browser only.

One entry per line. Example: 1:30, 2h 15m, -45m. You can also paste several lines.

TotalEnter a value to see the total.

Estimate for reference only — verify before relying on it.

How it works

Add up times
Write one entry per line and a running total follows on the right. Put a minus sign in front to subtract. What you typed is kept when you look at another tab.
Start to end
Enter clock-in and clock-out times and a break to get the time actually worked. If the end is earlier than the start, it counts as the next day.
Add to a time
Add or subtract an amount of time from a starting time to get the finishing time, and how many days it moved.

Worked examples

Formulas

Adding times
Every entry is turned into seconds, added, then turned back into hours and minutes. One hour is 3600 seconds and one minute is 60 seconds. Hours are the quotient of total / 3600; minutes are (total / 60) modulo 60.
Start to end
End minus start, minus the break. If the end equals or precedes the start, 24 hours (86,400 seconds) are added to the end so it falls on the next day.
Decimal hours
Seconds / 3600 rounded to two decimals. Example: 8 hours 20 minutes = 30,000 s / 3600 = 8.33 hours.
Add to a time
Divide (starting time + amount) by 86,400 seconds: the quotient is the number of days moved, the remainder is the resulting time.

Quick conversion table

MinutesH:MMDecimal hours
15 min0:150.25
20 min0:200.33
30 min0:300.5
40 min0:400.67
45 min0:450.75
90 min1:301.5

Common mistakes

Basis and assumptions

ItemValueType
One hour, one day3600 s, 86,400 sSourced (SI documents)
Typing 24:00End of the day (00:00 as a start)Sourced (ISO 8601 amendment)
Start equal to end24 hoursAssumption of this tool
Limit for one line1000 days (24,000 hours)Assumption of this tool
Decimal roundingTwo decimals, halves round upAssumption of this tool

Official references

Frequently asked questions

Which formats can I type?
Clock style such as 1:30 or 1:30:15 (minutes and seconds have two digits), and unit style such as 1h 30m, 90m, 1.5h, 45m or 30s. Full-width digits and colons are read too. A comma is a thousands separator when groups have three digits (1,440m = 1440 minutes) and a decimal point otherwise (1,5h = 1.5 hours).
Can the total go beyond 24 hours?
Yes. Totals are shown past 24 hours, for example 100:00. Only the start to end calculation uses the 24-hour clock. One line reads up to 1000 days (24,000 hours).
What if clock-in and clock-out are the same time?
It counts as 24 hours, not zero, because the same time again is the following day. This rule is an assumption of this tool. 24:00 means midnight; used as a start or starting time it is the same as 00:00.
Can I type AM or PM?
Not yet. Please use the 24-hour clock, for example 18:00 for 6 pm.
Can I use this for payroll or legal working hours?
It only does time arithmetic. Pay, legal working-hour limits and allowances depend on your contract and the law, so check those separately.

More calculators

See the other SeewolLabs calculators