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.