What is date math?
Date math answers questions such as how many days are left until an exam, how old someone will be on a given day, or what date falls 90 days after a deadline. It sounds simple, but calendars are uneven. Months have 28, 29, 30 or 31 days. Years have 365 days, or 366 in a leap year. Weeks have 7 days, which divides neither a month nor a year.
Three calculators cover the common questions: the date calculator adds or subtracts time from a date, the days between dates calculator counts a span, and the age calculator gives an exact age in years, months and days. Below are the ideas you need to count dates correctly by hand, and a checklist you can use to verify any result. For full walk-throughs, read how to count days between dates and leap years explained.
Key ideas to know
Month lengths. January, March, May, July, August, October and December have 31 days. April, June, September and November have 30. February has 28, or 29 in a leap year. A handy memory trick: count the knuckles and valleys of a closed fist.
Leap years. A year is a leap year if it is divisible by 4, except for years divisible by 100, unless they are also divisible by 400. So 2024 is a leap year, 1900 was not, and 2000 was.
Counting inclusively or exclusively. From Monday to Friday is 4 days later, but 5 calendar days if you count both the first and last day. Always check which one the question wants.
Weeks and days. Divide a number of days by 7 to get weeks, and keep the remainder. 100 days is 14 weeks and 2 days.
Time zones and clocks. When time of day matters, convert both times to the same zone first. A flight that leaves at 22:00 and lands at 06:00 the next day has been in the air for 8 hours only if the time zones are the same.
Age. A person's age in years increases on their birthday, not after 365 days. For a precise age, subtract the years and then subtract one if the birthday has not happened yet this year.
A checklist for any date calculation
- Write down the start date and end date.
- Decide if the start day counts.
- Check whether a leap day falls between them.
- Break the span into whole years, then months, then days.
- Check your answer by adding it back to the start date.
Worked mini-example: days between two dates
How many days are there from 10 March to 25 May of the same year, not counting the first day?
- Days left in March after the 10th: 31 − 10 = 21.
- All of April: 30.
- Days in May up to the 25th: 25.
- Total: 21 + 30 + 25 = 76 days.
If you counted both end days, you would say 77.
Worked mini-example: leap years
Is 2100 a leap year?
- It is divisible by 4.
- It is divisible by 100, so the exception applies.
- It is not divisible by 400, so the exception stands.
2100 is not a leap year. The year 2000 was, because 400 divides it.
Worked mini-example: weeks and days
How many weeks are in 100 days?
- 100 ÷ 7 = 14 with a remainder of 2.
- So 100 days is 14 weeks and 2 days.
Common date traps
Most date mistakes come from a few habits. Writing dates as 03/04/2025 is unclear, since the United States reads it as March 4 and many other countries read it as April 3. The ISO format, 2025-03-04, always puts the year first and the month second, so it cannot be misread.
Daylight saving time adds another trap. In places that use it, one day each year has 23 hours and another has 25. If you count hours across those dates, a simple multiplication by 24 can be off by an hour. Business-day counts add a third trap, because weekends and public holidays are skipped, and the holidays vary by country.
When you build your own date arithmetic, keep a short written record of each step: the start date, whether it counts, the leap days in between and the final date. That record lets you find an error quickly. Our date calculators show the same steps, so you can check them against your own.
Common questions
Why is the count sometimes off by one? Because of inclusive versus exclusive counting. Decide first, then count.
Do all months have the same number of weeks? No. Most months are a little over four weeks.
How do I find the day of the week for any date? Count forward from a known date. Every 7 days returns to the same weekday, so only the remainder after dividing by 7 matters.
Where does this connect to other math? Remainders belong to number theory, and rates of change in time belong to calculus. Roman numerals, often seen on clocks and cornerstones, are covered in Roman numerals explained.