Time DurationCalculator

A Time Duration Calculator finds the exact span between any two moments — in hours, minutes, and seconds. Enter a start time and end time, and this tool computes the time difference instantly. It handles elapsed time across midnight, converts to decimal hours, and works with both 12-hour and 24-hour clock formats. Use it for work hours tracking, payroll calculations, project planning, or time management.

Formula: Duration = End Time − Start Time

Your Local Time
121234567891011
--:--:--
 
 
Today Elapsed
0hrs
0min
0sec
0% of day
Time on Page
0min0sec
Day Remaining
0hrs0min
0Years
0Months
0Days
0Hours
0Minutes
0Seconds

Total Equivalents

0Total Days
0Total Hours
0Total Minutes
0Total Seconds
0Total Weeks
0Milliseconds

The Chronograph Display For Time Duration

The diagram below shows your calculated time duration visually. Both clocks update when you change the start time and end time, and the bridge displays the elapsed time between them.

START TIME
121234567891011
--:--:--
0h 0m 0s
DURATION
END TIME
121234567891011
--:--:--
0Days
0Hours
0Minutes
0Seconds
StartEnd

What Is a Time Duration Calculator?

A time calculator that measures the exact span between two points on the clock.

A Time Duration Calculator is a tool that computes the length of time between a start time and an end time. You enter two moments — two dates, two clock readings, or both — and it returns the time difference in hours, minutes and seconds.

This is different from a simple clock. A clock tells you what time it is right now. A duration calculator answers a different question: how long between one moment and another?

The tool handles any combination of dates and times. It works across midnight. It works across months, across years, across daylight saving time shifts. If you need to know the exact interval between two moments, this is the tool.

Time duration vs elapsed time

Time duration and elapsed time mean the same thing in practice. Both describe how much time has passed between two points. “Duration” is the more formal term you'll find in standards like ISO 8601. “Elapsed time” is the everyday version. For measuring a running span from start to stop, the elapsed time calculator does the same job in one click.

The important distinction is between clock time and time duration. Clock time is a point: “3:45 PM.” Duration is a span: “2 hours 30 minutes.” Our time difference calculator converts the first into the second.

Time Measurement Fundamentals & Base Units

Throughout human history, timekeeping evolved from solar sundials to modern atomic clocks. Today, the fundamental SI unit of time is the second (s), defined by 9,192,631,770 oscillations of a cesium-133 atom. Larger units — minutes (60s), hours (3,600s), days (86,400s), and years — build directly from this atomic baseline.

Interactive: Clock Time vs Duration
9:00 AMStart5:30 PMEnd8h 30mClock Time(a point)Clock Time(a point)Duration(a span)

Time Duration vs Time Difference vs Time Interval

These three terms are closely related but serve different purposes in time calculations.

What Is Time Duration?

Time duration is the total length of time between a start time and an end time. It answers \"how long?\" For example, if you start working at 9:00 AM and finish at 5:30 PM, the duration is 8 hours 30 minutes. Duration is always a positive span, regardless of direction.

What Is Time Difference?

Time difference is the gap between two specific clock readings or dates. It can be directional — you can say the time difference from Monday to Thursday is 3 days, or from 2 PM to 10 AM the next day is 20 hours. In practice, a time difference calculator returns the same result as a duration calculator for the same pair of times.

What Is a Time Interval?

A time interval has a defined start point and end point — it is a segment on the timeline. The ISO 8601 standard defines intervals as pairs of timestamps (e.g., 2026-01-01/2026-06-30). The key distinction: an interval includes when it happens, while a duration only tells you how long.

Key Differences at a Glance

Duration = a span of time (e.g., "8 hours 30 minutes"). Time Difference = the gap between two moments (e.g., "from 9 AM to 5:30 PM"). Interval = a specific period with defined boundaries (e.g., "January 1 to June 30, 2026"). For everyday use, our time duration calculator handles all three — enter any two times and get the result.

Duration vs Difference vs Interval
Duration8h 30mHow long?Difference9 AM → 5:30 PMGap between two timesIntervalJan 1 – Jun 30Period with start & end

Time Duration Formula

The math behind every time interval calculation. Drag the sliders to see the formula in action.

Formula for Hours and Minutes

The basic time duration formula is straightforward:

Duration = End Time − Start Time

When both times are on the same day, subtract the starting time from the ending time. Convert both to the 24-hour time format first. Then subtract hours and minutes separately. If you would rather skip the arithmetic, the hours calculator returns the same result instantly.

If the minutes go negative, borrow 1 hour (60 minutes) from the hours column. This is the carryover method — the same technique used in the step-by-step calculation that our tool automates.

Formula for Decimal Hours

For payroll calculations and work hours tracking, you often need decimal hours instead of hours and minutes:

Decimal Hours = Hours + (Minutes ÷ 60)

Example: 7 hours 45 minutes = 7 + (45 ÷ 60) = 7.75 decimal hours. A Decimal Hour Calculator does this conversion in one step. Our tool shows both formats automatically.

Special Formulas: Overnight, Multi-Day & Break Deduction

Overnight Shift Formula: When an end time falls on the following day (e.g. 10:00 PM to 6:00 AM), add 24 hours to the end time: (6 + 24) − 22 = 8 hours.
Break Time Formula: To calculate net billable hours, subtract break minutes from total duration: Net Hours = Total Shift Duration − Unpaid Break Time.

Interactive: Try the Formula
Hours & Minutes:8h 30m
Decimal Hours:8.50
Total Minutes:510
00:0006:0012:0018:0024:00

How to Use the Time Duration Calculator

Four steps. No sign-ups. No downloads. It works right here in your browser.

Pick a Start Time

Select the start time and date using the date-time input. You can type it directly or use the calendar picker. The time calculator accepts both 12-hour time and 24-hour time.

Pick an End Time

Set your end time. Click “Now” to use the current moment. The calculator handles overnight duration and multi-day spans without any extra steps. To compare two clock readings on their own, use the time difference calculator.

Hit Calculate

Press “Calculate Duration.” The result appears instantly as years, months, days, hours and minutes. You also get total minutes, total seconds, decimal hours, and more.

View the Chronograph

Scroll down to see your time duration on the interactive chronograph display. Two analog clocks show the start time and end time. The bridge between them shows the elapsed time.

How Time Duration Is Calculated

Behind the scenes, the time duration calculator converts times and subtracts them using calendar-aware arithmetic.

The calculation follows these steps:

  1. Convert both start time and end time to a common format (24-hour time, with full date).
  2. Subtract seconds from seconds, minutes from minutes, hours from hours, days from days.
  3. If any unit goes negative, borrow from the next larger unit. This is the carryover method.
  4. Account for months with different lengths (28, 29, 30, or 31 days) and leap year rules from the Gregorian Calendar.

Calculating durations across midnight and multiple days

When a time duration crosses midnight, the end time appears “earlier” than the start time on a 12-hour clock. A shift from 10:00 PM to 6:00 AM looks like it goes backward, but it's actually 8 hours forward.

The calculator handles this by working with full date-time stamps, not just clock readings. It knows that 6:00 AM on June 22 comes after 10:00 PM on June 21. For overnight duration or multi-day spans, the Date and Time Duration Calculator always produces the correct result. When you only need whole days, the days between dates calculator counts them directly.

Interactive: Crossing Midnight
MIDNIGHTDay 1Day 210:00 PMStart6:00 AMEnd= 8 hours12PM6PM6AM12PM

How to Calculate Time Duration Manually

Step-by-step methods to calculate elapsed time by hand, without a calculator.

Method 1: Count Up in Steps

Start at the beginning time and count forward in convenient chunks until you reach the end time. For example, to find the duration from 9:45 AM to 2:15 PM:

  1. 9:45 AM to 10:00 AM = 15 minutes
  2. 10:00 AM to 2:00 PM = 4 hours
  3. 2:00 PM to 2:15 PM = 15 minutes

Total: 4 hours + 15 min + 15 min = 4 hours 30 minutes. This method works well for mental math because you break the problem into easy-to-handle pieces.

Method 2: Subtract Using 24-Hour Time

Convert both times to 24-hour format and subtract directly. If the minutes of the end time are smaller than the start, borrow 1 hour (60 minutes) from the hours column. Example: 14:10 − 9:45

  1. Borrow: 14:10 becomes 13:70
  2. Minutes: 70 − 45 = 25 minutes
  3. Hours: 13 − 9 = 4 hours

Result: 4 hours 25 minutes. This is the same borrowing technique used in standard subtraction.

Method 3: Split the Calculation at Midnight

For durations that cross midnight, split the calculation into two parts. Example: 10:30 PM to 6:15 AM

  1. From 10:30 PM to midnight (12:00 AM) = 1 hour 30 minutes
  2. From midnight to 6:15 AM = 6 hours 15 minutes

Total: 1h 30m + 6h 15m = 7 hours 45 minutes. This avoids confusion caused by the AM/PM changeover at midnight.

Example: Calculate 9 AM to 5 PM Manually

Using subtraction in 24-hour format: 17:00 − 9:00

  1. Minutes: 00 − 00 = 0 minutes
  2. Hours: 17 − 9 = 8 hours

Result: 8 hours 0 minutes. This is the standard workday duration. In decimal hours, this is 8.00.

Interactive Step-by-Step Breakdown
Problem: 9:45 AM → 2:15 PM
9:45 AM→10:00 AM
+15 min
10:00 AM→2:00 PM
+4 hours
2:00 PM→2:15 PM
+15 min
Mental Sum4h 30m (4.50 hrs)

Time Duration Calculation Rules

Every time duration calculation follows a set of rules. Understanding these helps you avoid common errors.

Rule 01

The Midnight Rule

When a duration crosses midnight (12:00 AM), the end time falls on the next calendar day. If you subtract 10:00 PM from 6:00 AM directly, you get a negative result. The correct method: add 24 hours to the end time first, then subtract. Our calculator does this automatically.

Rule 02

The Noon Rule

In the 12-hour clock format, 12:00 PM is noon — not midnight. 12:30 PM is half an hour into the afternoon, not the middle of the night. Confusing noon and midnight is one of the most common AM and PM errors.

Rule 03

The AM/PM Rule

Hours from 12:00 AM (midnight) to 12:59 AM are the start of the day. Hours from 12:00 PM (noon) to 12:59 PM are the start of the afternoon. When converting to 24-hour time: AM hours stay the same (except 12 AM = 00), PM hours add 12 (except 12 PM stays 12).

Rule 04

The Leap Year Rule

A leap year has 366 days instead of 365. February has 29 days in a leap year. If your duration spans February in a leap year, the total will differ by one day compared to a non-leap year. The calculator accounts for this using the Gregorian Calendar rules.

Rule 05

The DST Rule

When clocks move forward for Daylight Saving Time, one day has only 23 hours. When clocks fall back, one day has 25 hours. Durations that cross these transitions need adjustment. Browser-based calculators like ours use the operating system's timezone database to handle DST changes.

Rule 06

The Month Length Rule

Not all months have the same number of days. January has 31, February has 28 (or 29), April has 30, and so on. When calculating duration across months, the calculator uses the actual length of each month rather than assuming a fixed 30-day average.

12-Hour vs 24-Hour Clock Formats

Understanding how 12-hour AM/PM and 24-hour military time formats work in time duration calculations.

12-Hour Clock Format

The 12-hour clock format divides the 24-hour day into two periods: AM (Ante Meridiem) from midnight to 11:59 AM, and PM (Post Meridiem) from noon to 11:59 PM. While intuitive for daily life, calculating duration between 12-hour readings often leads to AM/PM mistakes.

24-Hour Clock Format (Military Time)

The 24-hour clock format (also known as military time) runs continuously from 00:00 (midnight) to 23:59. It removes all AM/PM ambiguity and simplifies subtraction. To convert any time reading, use our military time converter.

How the Calculator Handles Clock Formats

Our time duration calculator accepts both 12-hour and 24-hour inputs. Internally, it converts every input to 24-hour format with a full date stamp before calculating the exact elapsed time.

Interactive: 12h ↔ 24h Converter
12-Hour (AM/PM)
24-Hour (Military)
15:45
Your UTC Offset:UTC

Time Duration Formats and Notation

How time durations are represented in different formats, from clock-style notation to international standards.

HH:MM Time Format

The HH:MM format displays time as hours and minutes separated by a colon. It is the most common way to write clock times and durations. For clock times, HH ranges from 00–23 (24-hour) or 1–12 (12-hour with AM/PM). For durations, HH can exceed 23 — for example, 36:45 means 36 hours and 45 minutes. When displaying durations in spreadsheets, use the format [h]:mm to allow hours beyond 24.

HH:MM:SS Time Format

The HH:MM:SS format adds seconds for greater precision. For example, 02:30:15 represents 2 hours, 30 minutes, and 15 seconds. This format is used in sports timing, scientific measurements, video editing, and any context where second-level accuracy matters. The separator is always a colon.

Decimal Hours Format

In decimal hours, the minutes are expressed as a fraction of an hour. For example, 2 hours 30 minutes = 2.50 hours, and 1 hour 45 minutes = 1.75 hours. This format is preferred on payroll timesheets, in billing systems, and for mathematical calculations because it simplifies addition and multiplication. To convert: divide minutes by 60 and add to the whole hours.

Writing Time Durations Correctly

There are several accepted ways to write a time duration:

  • Clock-style: 8:30 or 08:30:00
  • Abbreviated: 8h 30m, 8 hrs 30 min, or 8h 30m 0s
  • Decimal: 8.50 hours
  • Verbose: 8 hours and 30 minutes

Avoid ambiguity by including a unit label. Writing "8:30" alone could mean either 8:30 AM (a clock time) or a duration of 8 hours 30 minutes, depending on context.

ISO 8601 Duration Notation

ISO 8601 defines a standard format for durations using the prefix P (for "period"). Time components are preceded by T. For example:

  • PT8H30M = 8 hours 30 minutes
  • PT45M = 45 minutes
  • P1DT6H = 1 day and 6 hours
  • P2Y3M10D = 2 years, 3 months, 10 days

ISO 8601 notation is used in programming (JavaScript, Python, Java), APIs, and data interchange formats. It eliminates ambiguity across languages and locales.

Live Notation & Format Synchronizer
HH:MM NotationStandard clock duration (can exceed 23)
08:30
HH:MM:SS PrecisionSecond-level timing accuracy
08:30:15
Decimal HoursPayroll & billing timesheets
8.504 h
Abbreviated FormatUnambiguous compact units
8h 30m 15s
ISO 8601 StandardInternational data exchange format
PT8H30M15S
Spreadsheet FormatFormat code: [h]:mm:ss
[8]:30:15

Convert Time to Decimal Hours

Decimal hours simplify payroll calculations, billing, and data entry. Here's how the conversion works.

Decimal conversion examples

The time conversion from HH:MM format to decimal hours divides the minutes by 60:

HH:MMDecimal HoursTotal Minutes
1:151.2575
2:302.50150
4:454.75285
7:207.33440
8:008.00480

When decimal hours are useful

Decimal hours are the standard in payroll calculations, employee timesheets, and billing and invoicing systems. Spreadsheets and accounting software multiply decimal hours by hourly rates directly — no extra conversion needed. For a full pay period, the payroll hours calculator totals decimal hours and applies the hourly rate for you.

A Work Hours Calculator and Time Card Calculator both benefit from this format. Instead of writing “7 hours 45 minutes,” you write “7.75 hours” and multiply straight by the pay rate.

Interactive: Decimal Converter
7 + (45 ÷ 60) =7.75Decimal Hours
7.75Hours

Common Time Duration Conversions

Quick reference for converting between common time units used in duration calculations.

Hours to Minutes

Multiply the number of hours by 60 to get minutes. For example, 2.5 hours = 2.5 × 60 = 150 minutes. This conversion is essential when timesheets or project tools require durations in minutes rather than hours.

Minutes to Hours

Divide the number of minutes by 60 to get hours. For example, 195 minutes = 195 ÷ 60 = 3.25 hours (3 hours 15 minutes). When converting, the whole number is the hours and the decimal remainder multiplied by 60 gives the remaining minutes.

Hours to Seconds

Multiply the number of hours by 3,600 (60 minutes × 60 seconds). For example, 1.5 hours = 1.5 × 3,600 = 5,400 seconds. This is commonly used in scientific calculations and programming contexts where time is often stored in seconds.

Days to Hours

Multiply the number of days by 24 to get hours. For example, 3 days = 3 × 24 = 72 hours. Note that when daylight saving time transitions occur, a calendar day may be 23 or 25 hours in local time, though 24 hours is the standard used for most calculations.

Weeks to Hours

Multiply the number of weeks by 168 (7 days × 24 hours). For example, 2 weeks = 2 × 168 = 336 hours. In a work context, one work week is typically 40 hours (5 days × 8 hours), not 168 hours.

Common Time Conversion Reference Table

FromToMultiply ByExample
HoursMinutes603h = 180 min
MinutesHours÷ 6090 min = 1.5h
HoursSeconds3,6002h = 7,200s
DaysHours245d = 120h
WeeksHours1681w = 168h
DaysMinutes1,4401d = 1,440 min
DaysSeconds86,4001d = 86,400s
Interactive Duration Conversion Matrix
Weeks÷ 168
0.015 w
Days÷ 24
0.104 d
HoursBase Unit
2.500 h
Minutes× 60
150.0 min
Seconds× 3,600
9,000 s

Leap Years and Calendar Rules

Leap years affect time duration calculations that span February or cross year boundaries.

What Is a Leap Year?

A leap year is a year with 366 days instead of 365. The extra day — February 29 — keeps the Gregorian Calendar aligned with Earth's orbit, which takes approximately 365.2422 days.

How to Determine a Leap Year

A year is a leap year if: (1) it is divisible by 4, AND (2) it is NOT divisible by 100 — UNLESS (3) it is also divisible by 400. So 2024 and 2028 are leap years. 1900 was not. 2000 was.

Month Lengths in the Gregorian Calendar

January: 31, February: 28 (29 in leap year), March: 31, April: 30, May: 31, June: 30, July: 31, August: 31, September: 30, October: 31, November: 30, December: 31. These lengths determine the exact result when a duration spans multiple months.

Why Leap Years Affect Duration

If you calculate the duration from January 1 to March 1 in a leap year, the result is 60 days. In a non-leap year, the same range is 59 days. The time duration calculator uses the actual calendar to ensure this difference is reflected in every result.

Leap Year Decision Flowchart
Enter a YearDivisible by 4?NoYesDivisible by 100?NoYesDivisible by 400?NoYesLeap Year (366 days)Not a Leap Year (365 days)

Daylight Saving Time (DST)

How DST affects time duration calculations and what the calculator does about it.

What Is Daylight Saving Time?

Daylight Saving Time (DST) is the practice of moving clocks forward by one hour in spring and back by one hour in autumn. The goal is to make better use of daylight during evening hours. Not all countries observe DST.

Spring Forward — Losing an Hour

When clocks spring forward (typically in March in the Northern Hemisphere), the day has only 23 hours. If you work a shift that spans this transition, the actual elapsed time is one hour less than what the clock readings suggest. For example, a shift from 10 PM to 8 AM on spring-forward night is 9 hours, not 10.

Fall Back — Gaining an Hour

When clocks fall back (typically in November in the Northern Hemisphere), the day has 25 hours. A shift spanning this transition gives one extra hour of actual time. The clock reads 2:00 AM twice — the calculator resolves this ambiguity using timezone rules.

Countries and DST

About 70 countries observe DST in some form. Most of Africa, most of Asia, and all of South America's equatorial regions do not use DST. When calculating durations across international boundaries, knowing whether a country observes DST is essential. Our calculator uses your browser's timezone data, which includes DST rules for your locale.

DST: Spring Forward & Fall Back
Spring Forward1 hour lost23-hour dayFall Back+1h25-hour dayNormal Day = 24 hours2:00 AM3:00 AM

Time Zones, UTC, and GMT

Understanding time zones, UTC, GMT, and UTC offsets is essential for accurate cross-border time calculations.

What Is a Time Zone?

A time zone is a region of the world that observes a uniform standard time for legal, commercial, and social purposes. Most time zones are defined as a fixed offset from UTC (Coordinated Universal Time). There are 24 primary time zones around the globe, along with half-hour and quarter-hour offset regions (such as India at UTC+5:30).

UTC vs GMT

UTC (Coordinated Universal Time) is the global atomic time standard used across aviation, computing, and telecommunications. GMT (Greenwich Mean Time) is the historic solar time standard measured at the Royal Observatory in Greenwich. In practice, UTC and GMT share the exact same time value (00:00 offset), serving as the universal reference point from which all world time zones are measured.

Understanding UTC Offsets

A UTC offset expresses how many hours and minutes a local time zone is ahead of (+) or behind (−) UTC. For example, New York is UTC−5 in standard time, London is UTC+0, and Tokyo is UTC+9. When calculating time duration across borders, converting local times to UTC offsets prevents errors caused by regional time differences.

Why Time Zones Matter for Duration

Calculating duration within a single time zone is simple arithmetic. When a event spans two time zones — such as an international flight or a remote team meeting — you must convert both the start time and end time to UTC before subtracting. For instant cross-zone conversions, use the dedicated time zone converter.

World Time Zones (UTC Offsets)
-12-9-6-3+0+3+6+9+12UTCYour zoneLANYCLondonDubaiDelhiTokyoSydney

Add and Subtract Time

Add or subtract a specific time duration from any date. Find what date falls 90 days from now, or what time it was 3 hours ago. To stack several durations together instead, use the time addition calculator.

Resulting Date & Time
—

Time Duration Formulas for Excel and Google Sheets

Practical formulas for calculating time durations directly in spreadsheet applications.

Calculate Duration Between Two Times in Excel

Enter a start time in cell A1 (e.g., 9:00 AM) and an end time in B1 (e.g., 5:30 PM). To calculate the duration:

=B1-A1

Format the result cell as [h]:mm:ss (custom format) to display hours and minutes. Without the square brackets around h, durations over 24 hours will wrap around and show incorrect values. The same formula works in Google Sheets.

Calculate Overnight Duration in Excel

If the end time is earlier than the start time (i.e., the shift crosses midnight), the basic formula returns a negative number. Use this corrected formula:

=B1-A1+(B1<A1)

The expression (B1<A1) evaluates to 1 (which equals one full day in Excel's time system) when the end time is before the start time, automatically adding 24 hours to the result. For example, start 10:00 PM, end 6:00 AM gives 8:00 hours.

Calculate Duration Between Two Dates

When your cells contain both date and time values, the simple subtraction =B1-A1 works directly because Excel stores dates as serial numbers. To display the result in days and hours, use a custom format like d "days" h:mm, or extract individual components:

=INT(B1-A1) & " days " & TEXT(B1-A1,"h:mm")

Convert Time to Decimal Hours in Excel

Excel stores time as a fraction of a day. To convert a time duration to decimal hours, multiply by 24:

=(B1-A1)*24

Format the result as a Number with 2 decimal places. For example, a duration of 7:45 (7 hours 45 minutes) returns 7.75. This is useful for payroll timesheets that require decimal hour entries.

Common Time Duration Formulas

TaskFormulaFormat
Duration (h:mm)=B1-A1[h]:mm
Overnight duration=B1-A1+(B1<A1)[h]:mm
Decimal hours=(B1-A1)*24Number
Total minutes=(B1-A1)*1440Number
Total seconds=(B1-A1)*86400Number

All formulas above work in both Microsoft Excel and Google Sheets without modification.

Spreadsheet Formula Simulator (Excel & Google Sheets)
C2fx
#A (Start Time)B (End Time)C (Duration Formula)
28:00
Overnight Shift Logic: Since End Time (06:00) is before Start Time (22:00), (B2<A2) evaluates to TRUE (1 full day) in Excel, adding 24 hours to yield 8:00.

Common Uses of a Time Duration Calculator

From clocking in at work to planning a wedding, time tracking shows up everywhere.

Work hours and payroll

Calculate exact working hours for each shift. Convert to decimal hours and multiply by the hourly rate. A dedicated work hours calculator removes guesswork from payroll calculations.

Employee timesheets

Fill employee timesheets accurately. This Time Card Calculator handles lunch breaks, split shifts, and overtime calculation. Use the Break Time Duration Calculator to subtract break periods from total time. For weekly totals across every day worked, use the timesheet calculator.

Project tracking

Measure sprint durations, milestone intervals, and deadline countdowns. Project planning depends on accurate time duration measurements. A Day Counter Calculator helps track multi-day project phases. Break a project into individual work items with the task time calculator.

Billing and invoicing

Bill clients by the hour with precision. Convert hours, minutes and seconds to decimal hours, then multiply by your rate. No rounding errors, no disputes. The Weekly Time Duration Calculator handles recurring billing cycles. Log billable days as you go with the time card calculator.

Event planning

Count days until a wedding, conference, or product launch. Calculate the exact duration of scheduled events. Manage gaps between sessions during a multi-day conference using the Date and Time Duration Calculator. Set a live countdown calculator running towards the date itself.

Study and productivity tracking

Track study sessions, deep work blocks, and focus intervals. Productivity improves when you measure how you actually spend your time. Time management starts with time tracking.

Working Hours, Breaks, Weekly Totals and Overtime

Practical guidance on calculating net work time, weekly hours, overtime, and billable hours from time durations.

Calculate Net Working Hours After Breaks

To find net working hours, subtract total break time from the gross duration. For example, if you work from 8:00 AM to 5:00 PM (9 hours gross) with a 1-hour lunch and two 15-minute breaks, net working time is: 9h − 1h − 0h 30m = 7 hours 30 minutes (7.50 decimal hours). Most payroll systems require net hours, not gross hours.

Calculate Weekly Working Hours

Add up your daily net working hours for the week. For a standard 5-day schedule of 8 hours per day, the weekly total is 40 hours. If your daily hours vary, calculate each day separately and sum them. For example: Mon 8.5h + Tue 7.75h + Wed 8.0h + Thu 8.25h + Fri 7.5h = 40.00 hours. Use a time card calculator to automate weekly tracking.

Calculate Overtime Hours

Overtime is any time worked beyond the standard threshold — typically 40 hours per week or 8 hours per day, depending on jurisdiction. To calculate: total weekly hours − standard hours = overtime hours. For example, if you worked 46 hours in a week with a 40-hour standard, you have 6 overtime hours. Overtime is often paid at 1.5× (time-and-a-half) or 2× the regular rate.

Calculate Billable Hours

Billable hours are the portion of your working time that can be charged to a client or project. Track start and end times for each task, subtract non-billable activities (admin, internal meetings, breaks), and convert the remaining duration to decimal hours for invoicing. For example, 2 hours 15 minutes of client work = 2.25 billable hours. Multiply by your hourly rate to determine the charge.

Work Hours, Breaks & Overtime Simulator
7.5h Net
1h Lunch
30m
Net WorkLunch BreakRest Breaks
Daily Net Work7h 30m
Weekly Total37.50 hrs
Overtime (Threshold: 40h)0.00 hrs OT
Estimated Gross Pay$1,312.50

Time Rounding for Timesheets and Payroll

How time rounding works, common rounding increments, and how they affect decimal hours on timesheets.

Exact Time vs Rounded Time

Exact time records the precise clock-in and clock-out (e.g., 8:07 AM to 5:03 PM). Rounded time adjusts these values to the nearest increment for simpler payroll processing. For instance, 8:07 AM rounded to the nearest 15 minutes becomes 8:00 AM. Most employers use rounding to reduce administrative complexity while maintaining fair pay practices.

Common Time Rounding Methods

The most common rounding methods in payroll are:

  • Round to nearest — the time is rounded to the closest increment (e.g., 8:07 rounds to 8:00, 8:08 rounds to 8:15)
  • Round down — always round to the lower increment (benefits the employer)
  • Round up — always round to the higher increment (benefits the employee)

The "round to nearest" method is most widely used and is generally considered the fairest approach over time.

Rounding Time to the Nearest 5, 10, or 15 Minutes

Common rounding increments and their effects:

Actual TimeNearest 5 minNearest 10 minNearest 15 min
8:07 AM8:05 AM8:10 AM8:00 AM
8:08 AM8:10 AM8:10 AM8:15 AM
8:22 AM8:20 AM8:20 AM8:15 AM
5:03 PM5:05 PM5:00 PM5:00 PM
5:38 PM5:40 PM5:40 PM5:45 PM

How Rounding Affects Decimal Hours

Rounding changes the decimal hours recorded on a timesheet. For example, if actual clock-in is 8:07 AM and clock-out is 5:03 PM, the exact duration is 8 hours 56 minutes (8.93 decimal hours). Rounded to the nearest 15 minutes, it becomes 8:00 AM to 5:00 PM = 9 hours 0 minutes (9.00 decimal hours). Over a pay period, small rounding differences can accumulate, so consistent application of the chosen method is important.

Interactive Payroll Rounding Comparator
Rounding Increment
Rounding Direction
Exact Time
8:07 AM
8.12 decimal hrs
Rounded for Payroll
8:00 AM
8.00 decimal hrs
Rounding Adjustment:-7 min (-0.12 hrs)
7/8-Minute Rule: Minutes 1–7 round down to the previous 15-minute mark (:00). Minutes 8–14 round up to the next mark (:15).

Examples of Time Duration Calculations

Click any example to load it into the calculator and see the result.

Common Time Durations and Shift Lengths

Reference guide for frequently calculated time durations, from short intervals to full-day shifts.

1-Hour Duration

One hour equals 60 minutes or 3,600 seconds. In decimal form, it is exactly 1.00 hours. Common 1-hour spans include 9:00 AM to 10:00 AM or 1:00 PM to 2:00 PM. A 1-hour block is the standard unit for meeting scheduling, tutoring sessions, and hourly billing.

2-Hour Duration

Two hours equals 120 minutes. Examples: 10:00 AM to 12:00 PM, or 6:00 PM to 8:00 PM. Two-hour blocks are common for workshops, exams, and movie screenings. In decimal hours, this is 2.00.

4-Hour Duration

Four hours equals 240 minutes. A 4-hour block often represents a half-day or part-time shift. Example: 8:00 AM to 12:00 PM. In many workplaces, a 4-hour shift is the minimum that qualifies for a paid break.

8-Hour Workday

The standard full-time workday is 8 hours (480 minutes). Typical schedule: 9:00 AM to 5:00 PM or 8:00 AM to 4:00 PM. With a 30-minute lunch break deducted, net working time is 7 hours 30 minutes (7.50 decimal hours). With a 1-hour lunch, net time is 7 hours (7.00 decimal hours).

9 AM to 5 PM

The classic "9-to-5" workday spans exactly 8 hours. In 24-hour format: 17:00 − 09:00 = 8:00. This duration equals 480 minutes, 28,800 seconds, or 8.00 decimal hours. It is the most commonly referenced work schedule worldwide.

10-Hour Shift

A 10-hour shift equals 600 minutes. It is common in compressed work schedules such as the 4×10 arrangement (four 10-hour days per week, totaling 40 hours). Example: 7:00 AM to 5:00 PM with no lunch, or 6:00 AM to 5:00 PM with a 1-hour break.

12-Hour Shift

A 12-hour shift equals 720 minutes. This format is widely used in healthcare, manufacturing, and emergency services. Typical schedules: 7:00 AM to 7:00 PM (day shift) or 7:00 PM to 7:00 AM (night shift). Workers often rotate between 3 and 4 shifts per week.

Overnight Shift

An overnight (or "graveyard") shift crosses midnight. For example, 10:00 PM to 6:00 AM is 8 hours. To calculate manually: count the hours from start to midnight (2 hours), then from midnight to end (6 hours), and add them: 2 + 6 = 8 hours. This calculator handles overnight durations automatically.

24-Hour Duration

A full day contains exactly 24 hours, 1,440 minutes, or 86,400 seconds. However, on days when daylight saving time changes occur, the actual elapsed time may be 23 hours (spring forward) or 25 hours (fall back). The calculator accounts for these variations when applicable.

24-Hour Circular Shift & Duration Explorer
8h 00m8.00 decimal hrs
Minutes
480 min
Seconds
28,800 s
Day Share
33.3%

Benefits of Using an Online Time Duration Calculator

Why use a tool when you could do the math by hand? Four reasons.

Improved accuracy

Manual time interval calculation is error-prone, especially with the carryover method across midnight or months of different lengths. The calculator eliminates rounding mistakes and AM and PM errors.

Faster calculations

What takes 2 minutes by hand takes under 1 second here. Type two times and get the answer. The duration calculator works faster than any manual step-by-step calculation.

Reduced manual errors

No more forgetting to borrow 60 minutes from the hour column. No more mixing up AM and PM. No more number of minutes miscounts. The tool does the arithmetic.

Works across different time formats

The calculator handles HH:MM format, HH:MM:SS format, 12-hour time format, 24-hour time, and decimal hours. You don't need to convert between formats first. It outputs results in every format you might need.

Common Time Calculation Mistakes

Avoid these frequent errors when calculating time duration manually.

Forgetting AM or PM

Entering 8:00 when you mean 8:00 PM instead of 8:00 AM produces a 12-hour error. Always specify AM or PM when using the 12-hour clock format, or switch to 24-hour time to eliminate this ambiguity entirely.

Common Mistake ✗8:00 → 5:00 = 9 hours
Correct Approach ✓8:00 AM → 5:00 PM = 9 hours

Ignoring Midnight Crossover

Subtracting 10 PM from 6 AM gives −16 hours if you do it naively. The correct duration is 8 hours — because the end time is on the next day. Always account for date changes when a duration spans midnight.

Common Mistake ✗6:00 − 22:00 = −16h
Correct Approach ✓(24 + 6) − 22 = 8h

Incorrect Decimal Conversion

A common mistake is treating 7 hours 45 minutes as 7.45 decimal hours. The correct conversion is 7 + (45 ÷ 60) = 7.75 decimal hours. Minutes must be divided by 60, not simply placed after the decimal point.

Common Mistake ✗7h 45m = 7.45 hours
Correct Approach ✓7h 45m = 7.75 hours

Mixing Date Formats

Is 03/04/2026 March 4 or April 3? The US uses MM/DD/YYYY, while most of the world uses DD/MM/YYYY. This confusion can shift a time duration by a full month. Our calculator uses unambiguous date pickers to prevent this issue entirely.

Ignoring Leap Years

Assuming every year has 365 days introduces a one-day error whenever a duration crosses a February 29. Over multi-year spans, these errors accumulate. The calculator uses the actual Gregorian Calendar for every computation.

Not Accounting for DST

A seemingly simple 24-hour span might actually be 23 or 25 hours if it crosses a DST transition. The calculator handles this automatically, but manual calculations often miss it.

Time Unit Converter

Instantly convert between hours, minutes and seconds, days, weeks, and more.

60Minutes

Why Use This Time Duration Calculator?

Built for accuracy, privacy, and ease of use.

Accurate Calendar-Aware Calculations

The calculator uses full calendar-aware arithmetic — not simplified 30-day months or 365-day years. It accounts for actual month lengths, leap year rules, and DST transitions based on your browser's timezone data.

Browser-Based Processing

All calculations happen directly in your browser. No data is sent to any server. Your start times, end times, and results are never stored, logged, or tracked. This is a client-side tool with no backend.

Works Across Devices

The calculator works on any device with a modern web browser — desktop, tablet, or phone. No app download required. No account needed. It adapts to your screen size and works offline once the page is loaded.

Free and Unlimited

There are no usage limits, no premium tiers, and no registration walls. Every feature on this page — the Time Duration Calculator, Time Unit Converter, Add/Subtract Time tool, and all interactive diagrams — is free to use.

Multiple Output Formats

Results are shown in years, months, days, hours, minutes, and seconds. You also get total equivalents (total days, total hours, total minutes, total seconds, total weeks, milliseconds) and decimal hours for payroll calculations.

Calendar-Aware
Privacy-First
Any Device
Free & Unlimited
Multiple Formats

Time Duration Glossary

Quick reference for key terms used in time duration calculations.

Time Spans

Time Duration

START TIMEEND TIMETIME DURATION (SPAN)Calculated Span = End Time − Start Time

The total length of time between two moments. Expressed as a span (e.g., 2 hours 30 minutes), not as a point on the clock.

Frequently Asked Questions

Answers to the most common questions about the Time Duration Calculator.

Enter a start time and end time into the Time Duration Calculator above. Click “Calculate Duration.” The tool subtracts the starting time from the ending time and returns the result in years, months, days, hours, minutes and seconds. It handles overnight durations, AM/PM conversions, and leap year boundaries automatically.

Yes. Calculate the total time duration first. Then use the “Add or Subtract Time” tool to remove break periods. For example, subtract 30 minutes for a lunch break or 15 minutes for a rest period. A dedicated break time calculator works the same way — total shift minus total break time equals net working hours.

Yes. The calculator works with full date-time stamps, not just clock time. If your start time is 10:00 PM on one day and your end time is 6:00 AM the next day, it correctly calculates 8 hours. Overnight duration is handled automatically — no need to add 24 hours manually.

Divide the minutes by 60 and add that to the hours. 2 hours 30 minutes = 2 + (30 ÷ 60) = 2.50 decimal hours. Our Decimal Hour Calculator section does this conversion live as you type. For payroll calculations, decimal hours are the standard format because they multiply directly with hourly rates.

Time duration is the length of time between two moments — it answers “how long?” Clock time is a specific point — it answers “when?” 3:00 PM is a clock time. 2 hours 15 minutes is a time duration. Elapsed time and time duration both refer to the same concept: the span between two points.

Yes. The date duration calculator handles spans of weeks, months, and years. It correctly accounts for months with 28, 29, 30, or 31 days, leap year rules in the Gregorian Calendar, and Daylight Saving Time (DST) transitions. Enter any two dates and get the exact breakdown.

The calculator uses your local time zone by default. For cross-timezone calculations, convert one time to the other's timezone using UTC offsets first. For example, if New York is UTC−5 and London is UTC+0, a 9 AM New York meeting is 2 PM London time. Our live clock supports switching between major time zones including UTC and GMT.

They mean the same thing. Both time duration and elapsed time describe the amount of time that has passed between a start point and an end point. “Duration” is the formal term used in standards like ISO 8601. “Elapsed time” is the more common everyday phrase. Our time calculator computes both identically.

Yes, completely free. No sign-up, no downloads, no usage limits. All calculations happen in your browser. Your data is never sent to any server. The Time Duration Calculator, Time Unit Converter, and “Add or Subtract Time” tools are all free to use without restrictions.

8 hours = 480 total minutes. Multiply the number of hours by 60 to get the number of minutes. You can verify this using the Time Unit Converter on this page — set it to convert 8 hours to minutes and it will show 480. For any other pair of units, the time units converter covers seconds through years.

There are 8 hours between 9:00 AM and 5:00 PM. In 24-hour format, this is 17:00 − 9:00 = 8 hours. This is the standard full-time workday duration used in most industries.

There are 45 minutes between 10:30 AM and 11:15 AM. You can calculate this by finding the difference: 11:15 − 10:30 = 0 hours and 45 minutes.

Yes and no. Both refer to midnight, but 24:00 marks the end of a day, while 00:00 marks the beginning of the next day. In ISO 8601, 24:00 on January 1 is the same instant as 00:00 on January 2. Most digital systems use 00:00 exclusively.

Yes. A time duration can span any length — hours, days, weeks, months, or years. For example, the duration from Monday 9:00 AM to Wednesday 9:00 AM is exactly 48 hours (2 days). This calculator handles durations of any length.

If the end time is earlier than the start time on the same date, the calculator assumes the duration crosses midnight into the next day. For example, a start time of 10:00 PM and an end time of 6:00 AM gives a duration of 8 hours. If dates are provided, the calculator uses the actual date difference.

No, this calculator computes the gross duration between two times. To deduct breaks such as a lunch hour, subtract the break duration from the total manually, or use the dedicated Break Time Calculator or Work Hours Calculator.

Yes. Enter times in two cells (e.g., A1 and B1), then use =B1-A1 and format the result as [h]:mm:ss. For overnight durations, use =B1-A1+(B1<A1). See the Time Duration Formulas for Excel and Google Sheets section on this page for more examples.

Divide the minutes by 60 and add to the hours. For example, 7 hours 45 minutes = 7 + (45 ÷ 60) = 7.75 decimal hours. This format is commonly used on timesheets and for payroll calculations.