How to Calculate Dates, Days and Time Durations

A clear method for days between dates, adding days and measuring time periods.

Date and time questions look simple until midnight, leap years or inclusive counting are involved. A good calculation starts by defining exactly what is being counted.

Days between two dates

Most date tools report the number of complete day boundaries between the dates. If you need to count both the start and end date as event days, add one after confirming that this is the rule you need.

Adding and subtracting days

Use a calendar date rather than a written date format that could be read in two ways. The tool should handle different month lengths and leap years automatically, but you should still check whether a deadline excludes weekends or public holidays.

Time duration

For a duration between two times, convert both times into minutes, subtract, then convert back to hours and minutes. When an end time is after midnight, one calendar day must be added.

Use the right rule

Work shifts, travel, legal notices and school calendars can have their own definitions. A calculator explains the arithmetic, not the official policy that applies to your situation.

Quick questions

Does the tool account for leap years?

Calendar-based calculations should include the additional day in leap years.

What about time zones?

Use a separate time-zone conversion when locations are different.

Last reviewed: 5 September 2026. If you spot an error, use our feedback page.

Clock intervals and calendar intervals

Worked example

A shift from 22:15 to 06:45 the next day lasts 8 hours 30 minutes. Subtracting a 30-minute unpaid break leaves 8 paid hours. From 1 January to 10 January there are nine elapsed calendar days, or ten dates when counting both endpoints.

Checks and limitations

Use dates for multi-day intervals and timestamps with time zones for actual elapsed hours. A daylight-saving transition can make a local day shorter or longer than 24 hours. Holiday and business-day rules are separate.

Use the calculator and check its method

Updated: 2026-10-03.