Instant Calculator

Time Calculator: Find Duration, Add or Subtract Time Instantly

Calculate the exact duration between any two date-times in seconds—with results displayed as total days, hours, minutes, and seconds, plus a clean HH:MM:SS format. Need to add 3 hours and 45 minutes to your current time? This calculator handles that too. Whether you're tracking work hours, planning schedules, or calculating elapsed time, get accurate results without manual math errors.

Instant calculations 12-hour and 24-hour formats Free forever

Time Calculator

Calculate the difference between two times or add/subtract hours and minutes.

Enter two date-times to calculate the duration between them.

What is time calculation and why does it matter?

Time calculation is the process of determining the duration between two points in time or finding a new time by adding or subtracting a specified interval. This fundamental skill powers everything from payroll processing to flight scheduling, project management to cooking timers.

Every day, billions of time calculations happen globally. Employers calculate work hours for 3.3 billion workers worldwide. Airlines coordinate 100,000+ daily flights across time zones. Hospitals track medication schedules measured in hours and minutes. The precision of these calculations directly affects paychecks, safety, and logistics.

Manual time calculations introduce errors. Studies show that 40% of paper timesheets contain mistakes, often due to incorrect duration calculations or decimal conversion errors. Using a reliable time calculator eliminates these costly mistakes.

The math behind calculating time duration

The core formula for time duration is straightforward: Duration = End Time − Start Time. However, the sexagesimal system (base-60) that governs hours, minutes, and seconds makes mental math tricky.

Step 1: Convert to 24-hour format

Converting eliminates AM/PM confusion. Add 12 to PM hours (except 12 PM), and convert 12 AM to 00.

12-Hour24-Hour
12:00 AM (midnight)00:00
9:30 AM09:30
12:00 PM (noon)12:00
3:45 PM15:45
11:59 PM23:59

Step 2: Handle the borrowing problem

When end minutes are smaller than start minutes, borrow 60 minutes from the hours:

Example: Calculate duration from 9:45 AM to 3:30 PM

  • Convert: 09:45 to 15:30
  • Problem: 30 < 45 (can't subtract directly)
  • Borrow: 15:30 becomes 14:90 (subtract 1 hour, add 60 minutes)
  • Calculate: 14 − 9 = 5 hours; 90 − 45 = 45 minutes
  • Result: 5 hours 45 minutes

Step 3: Convert to decimal hours (for payroll)

Divide minutes by 60, not 100. This is the most common calculation mistake.

The formula: Decimal Hours = Hours + (Minutes ÷ 60)

Continuing the example: 5 + (45 ÷ 60) = 5 + 0.75 = 5.75 decimal hours

Real-world examples with actual numbers

Standard Workday

Sarah clocks in at 8:15 AM and leaves at 5:30 PM with a 1-hour unpaid lunch.

  • Gross time: 17:30 − 08:15 = 9 hours 15 minutes
  • Subtract lunch: 9:15 − 1:00 = 8 hours 15 minutes
  • At $22/hour: 8.25 × $22 = $181.50 earned

Night Shift Crossing Midnight

Marcus works from 10:00 PM to 6:30 AM the next day.

  • Time until midnight: 24:00 − 22:00 = 2 hours
  • Time after midnight: 6 hours 30 minutes
  • Total: 2:00 + 6:30 = 8 hours 30 minutes

Project Deadline

A task started at 2:45 PM needs exactly 4 hours 30 minutes to complete.

  • Start: 14:45
  • Add 4 hours: 18:45
  • Add 30 minutes: 19:15
  • Completion time: 7:15 PM

Freelance Billing

A designer tracks three tasks:

  • Logo revision: 1h 45m
  • Website mockup: 3h 20m
  • Client call: 0h 55m
  • Total: 5h 60m = 6 hours ($510 at $85/hr)

Common time calculation mistakes to avoid

The decimal conversion trap

Writing 7 hours 45 minutes as 7.45 instead of 7.75. This can cost an employee $18 per 45-minute period at $24/hour.

AM/PM scheduling disasters

Booking a 12:30 AM meeting when you meant 12:30 PM. Remember: noon is 12:00 PM, midnight is 12:00 AM.

Forgetting to borrow

Subtracting 9:50 from 14:20 and getting 5:-30 (impossible). Always check if borrowing is needed.

Ignoring unpaid breaks

A 9-to-5 shift is 8 hours gross, but typically 7 hours net after a 1-hour lunch deduction.

Global time format conventions

Understanding format differences matters for international teams and travel.

12-hour clock (AM/PM)

United States, Canada, Australia, Philippines, India, Pakistan, Bangladesh, Mexico, Egypt

24-hour clock

Germany, France, Japan, China, Brazil, most of continental Europe

ISO 8601—the universal standard: For unambiguous international communication, ISO 8601 format (2025-12-21T14:30:00) prevents confusion between MM/DD/YYYY (American) and DD/MM/YYYY (European) date formats.

Frequently Asked Questions

How do I calculate time duration between two times?

To calculate time duration, subtract the start time from the end time. Convert both times to 24-hour format first. If the end minutes are smaller than start minutes, borrow 60 minutes from the hours. For example, from 9:45 AM to 3:30 PM: Convert to 09:45 and 15:30, then calculate 15:30 - 09:45 = 5 hours 45 minutes.

How do I convert minutes to decimal hours?

Divide the minutes by 60 and add to the hours. For example, 7 hours 45 minutes = 7 + (45 ÷ 60) = 7.75 decimal hours. Common conversions: 15 min = 0.25, 30 min = 0.50, 45 min = 0.75 hours.

How many hours is a 9 to 5 job?

A 9 AM to 5 PM workday is 8 hours total. However, if you have a 1-hour unpaid lunch break, the actual paid work time is 7 hours. Some employers count 9-5 as 7.5 or 8 hours depending on break policies.

What is the formula for calculating elapsed time?

Elapsed time = End time - Start time. When calculating manually: (1) Convert times to 24-hour format, (2) Subtract hours from hours and minutes from minutes, (3) If end minutes < start minutes, borrow 60 from hours. For crossing midnight, add 24 hours to the end time before subtracting.

How do I add hours and minutes to a time?

Add minutes first, then hours. If minutes exceed 60, subtract 60 from minutes and add 1 to hours. If hours exceed 24 (for 24-hour format) or 12 (for 12-hour format), adjust accordingly and move to the next day. Example: 10:45 AM + 3 hours 30 minutes = 14:15 or 2:15 PM.

What is the difference between 12-hour and 24-hour time formats?

The 12-hour format uses AM/PM indicators and runs from 12:00 AM (midnight) to 11:59 PM. The 24-hour format runs from 00:00 to 23:59 without AM/PM. To convert PM times to 24-hour: add 12 to hours 1-11 PM (2:30 PM = 14:30). 12:00 PM stays 12:00, and 12:00 AM becomes 00:00.

How do I calculate work hours for a timesheet?

For each day: (1) Calculate total time from clock-in to clock-out, (2) Subtract unpaid breaks like lunch, (3) Convert to decimal hours for payroll. Example: 8:30 AM to 5:15 PM with 1-hour lunch = 8.75 total hours - 1 hour break = 7.75 billable hours.

Why are there 60 minutes in an hour?

This system comes from ancient Babylon, which used a base-60 (sexagesimal) number system around 3000-2000 BCE. The number 60 is highly divisible—it has 12 factors (1, 2, 3, 4, 5, 6, 10, 12, 15, 20, 30, 60)—making it practical for dividing time into equal parts.

How do I calculate time across midnight?

For shifts crossing midnight, calculate time until midnight, then add time after midnight. Example: 10:00 PM to 6:30 AM = (24:00 - 22:00) + 6:30 = 2:00 + 6:30 = 8 hours 30 minutes. Alternatively, add 24 hours to the end time: 30:30 - 22:00 = 8:30.

What time will it be in X hours from now?

Add the hours to your current time. If the sum exceeds 24 hours (or crosses noon/midnight in 12-hour format), subtract 24 and move to the next day. Our time calculator instantly computes this—just enter your starting time, select 'add,' enter the hours/minutes, and get your result.

How do I convert decimal hours back to hours and minutes?

Multiply the decimal portion by 60 to get minutes. Example: 8.75 hours = 8 hours + (0.75 × 60 minutes) = 8 hours 45 minutes. For 6.33 hours: 6 hours + (0.33 × 60) = 6 hours 20 minutes (rounded).

What is ISO 8601 time format?

ISO 8601 is the international standard for date and time representation. It uses the format YYYY-MM-DDTHH:MM:SS (e.g., 2025-12-21T14:30:00). The 'T' separates date and time. This format eliminates ambiguity between MM/DD and DD/MM conventions used in different countries.

Related Calculators