Other

Time Calculator

Start
1 day in other units
UnitPer day
week0.1429
month (avg 30.44d)0.03285
year (avg)0.002738
hour24
minute1,440
second86,400
millisecond86,400,000

Enter values and Calculate — duration, decimal hours, and conversions land here.

Embed on your site

Any ezcalcs calculator can be embedded with one script tag. Copy the snippet below or use the homepage playground to preview and customize.

<!-- ezcalcs embed: time-calculator — paste anywhere in the body -->
<script
  async
  src="https://ezcalcs.net/embed.js"
  data-calc="time-calculator"
  data-theme="light"
  data-width="100%"
  data-height="640"
></script>

Need to calculate time between two points, add hours to a date, or convert work hours to decimal? Enter your values in the calculator above for instant results. This time calculator handles hours, minutes, and seconds across any two dates or times.

Whether you need to find a time duration, track work time for a timesheet, or figure out the number of days between two dates, the tool does the math so you don't have to.

Time Calculator

This time calculator lets you add or subtract time in hours, minutes, and seconds. It also finds the duration between two times on a clock or across two different dates.

Common uses:

  • Add time to a starting time or date
  • Subtract time from a date
  • Find the duration between two times (like 2:47 PM to 8:15 PM)
  • Count days between two dates
  • Convert time to decimal hours for payroll

Results appear right in the browser. Nothing is stored remotely. Your data stays locally on your device.

Time Duration Calculator: Find the Duration Between Two Times

A time duration calculator tells you how long something took. Enter a start time and an end time, and it returns the elapsed time in hours, minutes, and seconds.

For example, if you started a task at 9:15 AM and finished at 2:42 PM, the duration is 5 hours and 27 minutes. The calculator handles the borrowing across 60 minutes and 24-hour boundaries for you.

This works for times on the same day or times on two different dates. If your time span crosses midnight, select the correct dates alongside each time entry.

Hour Calculator: Start and End Time

Use the hour calculator when you have a starting time and end time and need the total hours between them. This is the simplest way to answer "how many hours from X to Y?"

Enter your start and end values. Choose 12-hour or 24-hour format depending on how you track time. The calculator returns the result in hours and minutes.

This is useful for shift workers, freelancers, and anyone tracking billable time. If your shift runs from 7:00 AM to 3:30 PM, the result is 8 hours and 30 minutes.

Add Time to a Date

Sometimes you need to know what date and time it will be after adding a specific number of hours, minutes, or days. Enter your starting date and time, then add the amount of time you want.

A few examples:

  • A delivery window is 72 hours from now. What date is that?
  • A medication is due every 8 hours. When is the next dose?
  • A project deadline is 14 days from today. What calendar date does that land on?

The calculator accounts for months of different lengths and handles the rollover automatically.

Subtract Time From a Date

This works the same way in reverse. Start with a known date and subtract time to find an earlier point.

Enter the date and time, then specify how many hours, minutes, or days to subtract. The calculator returns the resulting date and time.

Use this when you need to back-calculate a start point. If a package arrived at 3:00 PM on Thursday and shipping took 52 hours, it was sent at 11:00 AM on Tuesday.

Days Between Two Dates

Count the number of days between two dates by entering a start date and end date. The result is the total calendar days separating them.

This is helpful for:

  • Counting days until an event
  • Measuring the length of a lease or contract period
  • Tracking how many days remain before a deadline

The calculator counts full calendar days. If you need to include both the start and end date in your count, add one day to the result.

Time Between Two Dates Using Start Date and End Date

When you need more detail than just days, this mode gives you the full breakdown. Enter a start date and end date (with times), and the calculator returns the difference in months, days, hours, minutes, and seconds.

For example, the time between January 3 at 8:00 AM and March 15 at 5:30 PM is 2 months, 12 days, 9 hours, and 30 minutes.

This is useful for project timelines, age calculations, or any situation where a rough day count isn't precise enough.

Date Calculator for Two Dates

A date calculator for two dates focuses on calendar math. It can tell you:

  • The number of days, weeks, or months between two dates
  • Which day of the week a specific date falls on
  • How many business days separate two dates (excluding weekends)

Enter your two dates above. The calculator handles leap years and varying month lengths so you don't need to count manually.

Add or Subtract Time in Hours, Minutes, and Seconds

Need to add multiple time entries together? Enter each value in hours, minutes, and seconds, and the calculator totals them for you.

This is a calculator for adding up several time blocks. For instance, if you tracked three tasks today at 1h 45m, 2h 10m, and 0h 55m, the total is 4 hours and 50 minutes.

You can also subtract one time value from another. This is handy when you need to deduct breaks from your total hours worked.

Convert Time to Decimal Hours

Payroll systems and invoicing tools often require time in decimal form rather than hours and minutes. To convert, divide the number of minutes by 60 and add that to the whole hours.

Quick reference:

  • 15 minutes = 0.25 hours
  • 22 minutes = 0.37 hours
  • 30 minutes = 0.50 hours
  • 45 minutes = 0.75 hours

If your total work time was 40 hours and 22 minutes, the decimal equivalent is 40.37 hours. You need to multiply your hourly pay rate by that decimal number of hours to calculate your pay.

Decimal Hours and the Clock

A clock divides each hour into 60 minutes, but decimal hours treat each hour as a unit of 1.00. This difference trips people up.

On a clock, 7:30 means seven hours and thirty minutes. In decimal time, that same duration is 7.50. The minutes portion is always divided by 60 to get the decimal fraction.

Common conversions people look up:

Clock TimeDecimal Hours
:060.10
:150.25
:200.33
:300.50
:450.75

When filling out a timesheet, always confirm whether your employer expects clock format or decimal form.

Work Time Calculator for Timesheets and Payroll

Tracking work hours accurately matters for payroll. This calculator lets you enter shift start and end times, deduct breaks, and get total hours worked in both standard and decimal format.

Track Work Time With a Starting Time and End Time

Enter your clock-in time and clock-out time for each shift. If you took an unpaid break, enter that duration separately and the calculator will deduct breaks from your total.

For a shift from 8:00 AM to 4:30 PM with a 30-minute lunch, the result is 8 hours. If your work week totals five of these shifts, that's 40 hours.

This approach works for any schedule. Enter each day's start and end time, and the calculator sums your weekly total hours.

Convert Work Hours to Decimal for Calculation

Once you have your total hours worked, convert them to decimal for payroll calculation. This step is essential if you want to calculate your weekly salary based on the total hours multiplied by your hourly rate.

For example, 38 hours and 45 minutes becomes 38.75 decimal hours. Multiply by your hourly pay to get gross wages.

This calculator does not track overtime rules, which vary by employer and jurisdiction. If your total exceeds 40 hours in a week, check with your employer on how overtime is calculated and applied.

Time and Date Calculator for Developers

Developers frequently need to calculate time differences between timestamps, convert units of time, or compute durations in seconds for use in code.

This calculator supports:

  • Duration between two timestamps, returned in total seconds, minutes, or hours
  • Adding or subtracting intervals from a specific date and time
  • Converting between 12-hour and 24-hour formats
  • Getting the decimal representation of a time span

All calculations happen in the browser. No API call is needed, and no data leaves your desktop or mobile device. Use this as a quick reference when you need to verify a calculation before hardcoding values.

How to Calculate Time Duration Between Two Times

If you want to do the math manually, here is how it works.

Subtract Hours and Minutes

  1. Write the start time and end time in the same format (both 12-hour or both 24-hour).
  2. Subtract the minutes. If the end minutes are smaller than the start minutes, borrow 1 hour (60 minutes) from the hours column.
  3. Subtract the hours.

Example: 2:47 PM to 8:15 PM

  • Convert to 24-hour: 14:47 to 20:15
  • Minutes: 15 is less than 47, so borrow. 75 minus 47 = 28 minutes.
  • Hours: 19 (after borrowing) minus 14 = 5 hours.
  • Duration: 5 hours and 28 minutes.

Convert Duration to Decimal

Take your result and divide the minutes by 60.

  • 5 hours 28 minutes: 28 ÷ 60 = 0.467
  • Decimal result: 5.47 hours (rounded to two places)

Use this when you need a single decimal number for billing or payroll.

Time Calculator Limitations

This calculator provides estimates for general planning and time tracking. Keep a few things in mind:

  • Time zones are not applied. If your two times are in different time zones, adjust manually before entering them.
  • Daylight saving time is not factored in. A spring-forward or fall-back transition can shift your result by one hour.
  • Overtime, labor law, and pay rules vary. The calculator does not replace payroll software or professional payroll advice.
  • Leap seconds are not included. For everyday use this does not matter. For scientific or engineering applications, use a specialized tool.
  • Results are for personal planning. Do not rely on this calculator as the sole basis for legal, financial, or employment decisions.

For complex scheduling across time zones, months and years, or regulated payroll, consult the appropriate professional or dedicated software.