Time and date calculators

Count the days between two dates on this page, or open one of five time and date calculators: the date calculator for date differences and adding days, the time duration calculator for the hours between two times, the time calculator for adding hours and minutes, the hours calculator for hours worked, timecards and overtime, and the age calculator for an exact age.

5 calculatorsBy Hira Noor, mathematicianLast reviewed

Days between two dates

Thursday, January 1, 2026 to Friday, December 25, 2026
358 days
256 business days (Monday to Friday) · 51 weeks, 1 day · 11 months, 24 days

To add or subtract days, weeks or months from a date, open the date calculator. For hours between two times, use the time calculator.

Calculators in Date & Time

Date Calculator

Days between two dates (with business days), or a date plus or minus years, months, weeks and days.

Time Duration Calculator

Hours, minutes and seconds between two times, overnight spans, clock time plus a duration, and dates.

Time Calculator

Add and subtract hours, minutes and seconds, add up a list of times, or find the time between two times.

Hours Calculator

Hours worked between two times minus breaks, a weekly timecard with overtime, and decimal hours for payroll.

Age Calculator

How old you are in years, months and days, with totals, decimal age, your next birthday and birth weekday.

Which date or time calculator do I need?

Find your task in the first column. Every example below is a real result from the calculator in the last column.

Date and time tasks and the calculator for each
TaskExampleCalculator
Days between two dates1 Jan to 25 Dec 2026 = 358 daysDate calculator
Business days (Monday to Friday) between two dates1 Jan to 25 Dec 2026 = 256 business daysDate calculator
Add or subtract days, weeks, months or years from a date90 days before 21 Oct 2026 = 23 Jul 2026Date calculator
Hours and minutes between two times07:30 to 16:30 = 9 hTime duration calculator
Clock time plus or minus hours and minutes11:00 PM + 5 h = 4:00 AM the next dayTime duration calculator
Time between two dates and timesMon 8:00 AM to Wed 5:30 PM = 2 days 9 h 30 minTime duration calculator
Hours worked in a shift, minus an unpaid lunch8:00 AM to 4:30 PM, 30 min lunch = 8 hHours calculator
A night shift that crosses midnight10:00 PM to 6:30 AM = 8 h 30 minHours calculator
Weekly timecard with overtime over 40 hours44 h week = 40 h regular + 4 h overtimeHours calculator
Add or subtract hours, minutes and seconds2 h 45 min + 1 h 30 min = 4 h 15 minTime calculator
Convert hours and minutes to decimal hours7 h 45 min = 7.75 hTime calculator
Exact age in years, months and daysBorn 15 May 1990, on 21 Oct 2026 = 36 y 5 m 6 dAge calculator
Next birthday and the weekday you were born15 May 1990 was a TuesdayAge calculator

How to calculate time duration between two times

To find the hours between two times, turn both into minutes after midnight, subtract, then turn the difference back into hours and minutes.

  1. Write both times on the 24-hour clock

    7:30 AM is 07:30 and 4:30 PM is 16:30.

  2. Convert each time to minutes after midnight

    Multiply the hours by 60 and add the minutes: 7 × 60 + 30 = 450 and 16 × 60 + 30 = 990.

  3. Subtract the start from the end

    990 − 450 = 540 minutes. If the answer is negative, the span crosses midnight, so add 1,440 minutes (24 hours).

  4. Convert back to hours and minutes

    Divide by 60: 540 minutes is 9 hours exactly. Any remainder is the extra minutes.

The time duration calculator does these steps for any two times, shows the subtraction column by column and shades the span on a timeline.

Answer7:30 AM to 4:30 PM is 9 hours. The same method gives 8 hours from 7:00 AM to 3:00 PM, and 8 hours 30 minutes from 10:00 PM to 6:30 AM the next morning.

Working out hours worked

Subtract any unpaid break from the span. A 7:30 to 16:30 day with a 30-minute lunch is 8 h 30 min, or 8.5 decimal hours. The hours calculator takes off breaks, totals a Monday to Sunday timecard and splits out overtime and pay.

Timesheets and payroll often need hours as a decimal rather than in hours and minutes. Divide the minutes by 60 and add the result to the whole hours.

Minutes as decimal hours
MinutesDecimal hoursExample
60.18 h 6 min = 8.1 h
150.257 h 15 min = 7.25 h
200.333…1 h 20 min ≈ 1.33 h
300.58 h 30 min = 8.5 h
400.666…2 h 40 min ≈ 2.67 h
450.757 h 45 min = 7.75 h

How to count the days between two dates

Counting days across months by hand is easy to get wrong, because months have 28 to 31 days and leap years add a day. The date calculator gives each date a day number instead, a running count of days in the Gregorian calendar, and subtracts one from the other. The result is exact across any number of months, years and leap days.

  • End date not included by default. 1 March to 2 March is 1 day. Tick Include end date to count both, which adds 1, so 1 to 31 March becomes 31 days.
  • Leap days counted. 1 February to 1 March 2028 is 29 days, because 2028 is a leap year.
  • Business days are Monday to Friday. Public holidays differ by country and year, so they are not removed. Subtract the ones that apply to you.

Calendar rules every calculator follows

Date questions have edge cases where two reasonable answers exist. These calculators use the same rule for each case, and a result notes the rule whenever it changes the answer.

Rules used by the date, time and age calculators
CaseRuleExample
Leap yearsDivisible by 4, except century years not divisible by 4002000 was a leap year; 1900 and 2100 are not
Adding months to a month-end dateKeep the day if it exists, otherwise use the last day of the shorter month31 Jan 2027 + 1 month = 28 Feb 2027
Birthday on 29 FebruaryCounted on 28 February in common yearsBorn 29 Feb 2000: turns 27 on 28 Feb 2027
Time zones and daylight savingNot applied; every day has exactly 24 hoursA day count never gains or loses an hour
Supported datesYear 1 to year 9999, Gregorian calendar1 Jan 0001 to 31 Dec 9999

Why the month-end rule matters

Adding one month and then another month does not always equal adding two months at once. 31 January + 1 month is 28 February, and 28 February + 1 month is 28 March, while 31 January + 2 months is 31 March. Add the whole period in one step when the day of the month matters.

About these calculators

The date calculator and age calculator convert dates to day numbers with a published algorithm for the Gregorian calendar, so no time zone or device clock setting can shift a result. The time duration calculator and time calculator are exact to the second and show every answer as hours and minutes, decimal hours, total minutes and a clock-style h:mm:ss value, and the hours calculator applies the US federal and California overtime rules to a weekly timecard.

Results are checked against hand-worked examples in automated tests, including leap days, month ends, century years and spans that cross midnight. The methodology page describes how the calculators are tested.

All five calculators are free, need no account and run entirely in your browser. To convert between units of time such as weeks, days and seconds, use the unit converter.

Frequently asked questions

How many hours is 7:30 to 4:30?

From 7:30 AM to 4:30 PM is 9 hours. Convert both times to minutes after midnight (450 and 990), subtract to get 540 minutes, and divide by 60.

How do I calculate the hours between two times that cross midnight?

Subtract the start time from the end time as usual. If the result is negative, add 24 hours. For example, 22:00 to 06:30 gives −15 h 30 min, and adding 24 hours gives 8 h 30 min. The hours calculator does this automatically whenever the end time is earlier than the start.

Is the end date included in a day count?

Not by default. The count is the number of days from the start date to the end date, so 1 to 2 March is 1 day. Tick "Include end date" to count both days, which adds 1.

Are public holidays left out of business days?

No. Business days are every Monday to Friday in the span. Holidays vary by country, region and year, so subtract the ones that apply to you.

Do these calculators account for leap years?

Yes. February has 29 days in years divisible by 4, except century years not divisible by 400. So 2000 was a leap year and 1900 was not.