Free browser-based calculators.Back home
%Compound Calculator

Date Difference Calculator

Measure the time between two calendar dates.

Result2 years, 3 months, 21 days | 842 total days

Calendar difference and total-day difference are shown together.

Short answer: Days between two dates is end minus start, not counting the start day: 1 Jan to 25 Dec 2026 is 358 days. Add 1 if you count both endpoints.

Examples

StartEndDaysWeeks
2026-01-012026-12-2535851.1
2026-11-072027-01-01557.9
2024-02-012024-03-01294.1
2026-02-012026-03-01284
2000-01-012026-11-079,8071,401

February 2024 has 29 days and February 2026 has 28, which is why the third and fourth rows differ.

Inclusive versus exclusive counting

Exclusive counting gives the elapsed time. A hotel stay from the 10th to the 13th is 3 nights; a conference held on the 10th, 11th, 12th and 13th lasts 4 days. Contracts and deadlines often state which convention applies, so read the wording.

Business days

Counting weekdays only (Monday to Friday, ignoring public holidays), 9 Nov to 23 Nov 2026 (end date excluded) contains 10 business days in 14 calendar days. Holidays vary by country and must be removed separately.

Leap years

A year is a leap year if divisible by 4, except century years not divisible by 400: 2000 and 2024 are leap years; 1900 and 2100 are not.

How this calculator works

The form above runs in your browser with the same arithmetic described on this page; nothing you type is sent to a server. Results are rounded for display only, so a long decimal may differ from the last digit of a hand calculation. Empty, zero or non-numeric inputs return a message instead of a result, and division by zero is never evaluated.

Use the tool to check your own working rather than to replace it: write the formula, substitute your numbers, and compare. If the two disagree, look first at units, the order of the inputs and whether a percentage was entered as 5 or as 0.05.

The tables on this page are generated by script from the formulas shown, not typed by hand, and are rebuilt whenever the page is reviewed. The reviewed date above is the date those numbers were last recomputed.

Typical input errors are worth a second look before you rely on a result: a comma used as a decimal separator, a value typed in the wrong unit, or two inputs swapped. If a result looks implausible, test the tool with a case you can do in your head, such as round numbers, and confirm it matches before trying your real figures.

Sources

Related tools

Educational tool. Found an error? Tell us.