CCalculate.Studio

⏱️ Time Calculator

A time calculator adds and subtracts clock times and measures the duration between two times of day, working in 24-hour HH:MM format. The between mode wraps past midnight, so a shift from 22:00 to 06:00 correctly returns 8 hours. Results are shown three ways: hours and minutes, total minutes, and decimal hours — the format payroll and billing systems use.

Última revisión: 2026-07-07

Tus datos

Resultados

Result8h 30m
Total minutes510
Decimal hours8,5 h

Understanding your time result

The same duration is reported in three formats because different tasks need different units. The conversion between minutes and decimal hours is the one most often done wrong on timesheets.

MinutesHH:MMDecimal hours
15 min0:150.25 h
30 min0:300.5 h
45 min0:450.75 h
90 min1:301.5 h
480 min8:008.0 h
510 min8:308.5 h
  • The between mode assumes the second time is on the following day whenever it is earlier on the clock — an interval can never be negative and never exceeds 24 hours.
  • Add and subtract results wrap within a 24-hour clock (modulo 1440 minutes); adding 5 hours to 22:00 shows 03:00, the next-day roll-over is implicit.
  • This calculator works with clock times, not time zones — durations across a daylight-saving change in the real world can differ by an hour from pure clock arithmetic.
  • Times must match 24-hour HH:MM format (00:00 to 23:59); enter 5:30 PM as 17:30.

What is time arithmetic?

Time arithmetic is calculation in a base-60 (sexagesimal) system: 60 minutes make an hour and 24 hours make a day. The clean method is to convert each clock time to total minutes since midnight (hours × 60 + minutes), do ordinary arithmetic on those totals, and convert back — carrying over 60 when minutes overflow and wrapping around 1440, the number of minutes in a day.

The duration-between calculation answers "how long from time A to time B" and wraps past midnight when B is earlier on the clock than A. From 22:00 to 06:00 the elapsed time is 1440 − 1320 + 360 = 480 minutes, or 8 hours — the natural reading for overnight shifts, flights and sleep tracking. The add and subtract modes treat the second time as a duration to add to or remove from the first, with results kept within a 24-hour clock.

Decimal hours express minutes as fractions of an hour (30 minutes = 0.5 h), which is the convention used by payroll, billing and timesheet systems. 8 hours 30 minutes is 8.5 decimal hours — not 8.3, a frequent timesheet error caused by reading the minutes digits as decimals.

How to use this time calculator

  1. Choose the operation: add, subtract, or duration between two times.
  2. Enter both times in 24-hour HH:MM format — for example 09:15 and 17:45.
  3. For the between mode, enter the earlier time first; if the second time is earlier on the clock, the calculator assumes it falls on the next day and wraps past midnight.
  4. Read the result in hours and minutes, total minutes, and decimal hours for timesheets.

The formula behind time calculation

minutes since midnight = hours × 60 + minutes
between = t2 − t1 (+ 1440 if negative, wrapping past midnight)
add = (t1 + t2) mod 1440; subtract = (t1 − t2) mod 1440
decimal hours = total minutes ÷ 60

Each time is converted to minutes since midnight (hours × 60 + minutes). The between mode subtracts the first from the second, adding 1440 minutes (one day) when the result would be negative. Add and subtract work modulo 1440, keeping results within a 24-hour clock. Decimal hours divide total minutes by 60.

Worked example (between): 09:15 to 17:45. In minutes: 555 to 1065. Difference: 1065 − 555 = 510 minutes = 8 hours 30 minutes = 8.5 decimal hours — a standard working day. Overnight example: 22:00 to 06:00 gives 1440 − 1320 + 360 = 480 minutes = 8 hours.

Common mistakes

  • Reading minutes as decimals — 8 hours 30 minutes is 8.5 decimal hours, not 8.3; divide the minutes by 60.
  • Doing base-10 subtraction on clock times — 17:45 minus 09:15 works cleanly, but 17:15 minus 09:45 requires borrowing 60 minutes, not 100.
  • Getting negative durations for overnight intervals — from 22:00 to 06:00 is 8 hours forward, which requires wrapping past midnight rather than subtracting directly.
  • Entering 12-hour times without converting — 5:30 PM must be entered as 17:30 in 24-hour format.
  • Ignoring daylight-saving transitions when computing real elapsed time — on the night clocks change, wall-clock arithmetic is off by one hour from true elapsed time.

Preguntas frecuentes

How many hours are between 09:15 and 17:45?

8 hours 30 minutes. Convert both times to minutes since midnight (555 and 1065), subtract to get 510 minutes, and convert back: 510 ÷ 60 = 8 remainder 30. As decimal hours for a timesheet, that is 8.5 h.

How do I calculate hours worked overnight?

Use the between mode with the shift start as the first time and the end as the second. When the end time is earlier on the clock — say 22:00 to 06:00 — the calculator wraps past midnight: 1440 − 1320 + 360 = 480 minutes, or 8 hours. No negative results occur.

How do I convert minutes to decimal hours?

Divide total minutes by 60. For example, 510 minutes ÷ 60 = 8.5 decimal hours. The common timesheet mistake is writing 8 hours 30 minutes as 8.3 — the minutes must be divided by 60, not appended as decimal digits, so 15 minutes is 0.25 h and 45 minutes is 0.75 h.

What does adding two times mean?

The add mode treats the second entry as a duration: 06:30 plus 02:45 gives 09:15. Results stay within a 24-hour clock, so if the sum passes midnight the calculator shows the wrapped time — for example 23:00 plus 03:00 shows 02:00 (the following day).

Why does my payroll system show different hours than my watch says?

Payroll systems record time in decimal hours, where each minute is 1/60 of an hour. A 7-hour-50-minute day is 7.83 decimal hours, not 7.50. Rounding policies also differ — some employers round to the nearest 5, 6 or 15 minutes — so small differences from raw clock arithmetic are normal.

Referencias

  1. ISO 8601 — Date and time — Representations for information interchange (24-hour clock convention). International Organization for Standardization.
  2. NIST — Time and Frequency Division: units of time and the 24-hour day. nist.gov.

Fechas y Hora · Todas las calculadoras

Calculadoras relacionadas