Money & Calculators

How Date Calculators Count Days, Weeks and Age

Counting days sounds trivial until two tools give different answers. Here is how inclusive counting, business days, leap years, age conventions, due dates and time zones each change the result.

How Date Calculators Count Days, Weeks and Age
Photo by RDNE Stock project on Pexels

Key takeaways

  • From 1 January to 10 January is 9 days if you count the gap and 10 if you count both ends; always check which a tool uses.
  • Business days exclude weekends and usually public holidays, so 58 calendar days can be 42 working days.
  • A year is a leap year if divisible by 4, except centuries, unless divisible by 400: 2000 was, 1900 and 2100 are not.
  • Age is counted differently in different cultures; the same person can be 0, 1 or 2 depending on the convention.
  • Naegele's rule adds 280 days to the last period, assumes a 28-day cycle, and only about 4 to 5% of babies arrive on that day.

Date calculators disagree with each other for a handful of predictable reasons: whether they count both end dates, whether they skip weekends and holidays, how they handle months of different lengths and 29 February, which age convention they follow, and which time zone defines "today". None of these is a bug. Each is a choice, and once you know the choices you can read any result correctly and check it by hand.

Inclusive versus exclusive counting

How many days are there from 1 January to 10 January? Subtract the dates and you get 9. Count the dates on a calendar, pointing at each one, and you get 10. Both answers are correct; they answer different questions.

  • Exclusive counting measures the gap between two dates. It is what you get from subtracting, and it is how most software works. 1 January to 10 January is 9 days.
  • Inclusive counting includes both the start and the end date. It is how people count days of a holiday, days of a course of medicine or days of a hotel stay: 1 January to 10 January inclusive is 10 days.

The off-by-one error this causes is everywhere. A contract that runs "from 1 March to 31 March" is 31 days inclusive, but a tool that subtracts will report 30. A 14-day notice period served on a Monday ends on a different day depending on whether Monday itself counts. Legal and tax rules usually say which convention applies; when they do not, the safe move is to state it explicitly.

Born 15 July 1990, calculating on 27 October 2026: the exclusive gap is 13,253 days, which is 1,893 weeks and 2 days, or 36 years, 3 months and 12 days. Inclusive counting would give 13,254 days. The date difference calculator shows the gap by default and has a switch to include the end date, so you can see both figures and choose the one your situation calls for.

Once you have a gap in days, other units are one conversion away. The time converter turns 13,253 days into 318,072 hours or about 1,893.3 weeks. It works from fixed averages for the longer units, though, counting a month as 30.4375 days and a year as 365.25, so it is the right tool for durations and the wrong one for calendar-exact months and years, which depend on the actual dates.

Business days are not calendar days

Business days (also called working days) are weekdays only, Monday to Friday, and most definitions remove public holidays as well. The difference from calendar days is large: roughly five sevenths of the days in any period are weekdays, and fewer once holidays are removed.

From Tuesday 27 October 2026 to Thursday 24 December 2026 is 58 calendar days. Counting weekdays only, and excluding the start date, it is 42 business days. Add a public holiday or two and it drops further. A delivery promised in "40 working days" on 27 October lands in the week before Christmas, not in early December as "40 days" might suggest.

Two conventions interact here. "Ten business days from Monday 2 November" usually means the tenth weekday after it, which is Monday 16 November; the start day itself is not counted. Thirty calendar days from the same Monday is Wednesday 2 December. And a period from Friday to the following Monday is 3 calendar days but only 1 business day, which is why a payment "within one business day" made on a Friday afternoon arrives on Monday or Tuesday.

Public holidays are the awkward part, because they vary by country, by region within a country, and from year to year. A calculator that says it excludes holidays must say whose. If your deadline depends on it, check the specific calendar: a bank holiday in Scotland is not always one in England, and a federal holiday in the United States is not always observed by every state.

Period in 2026Calendar daysWeekdaysNote
Mon 2 Nov to Fri 6 Nov4 (exclusive) / 5 (inclusive)4 / 5Same week, no weekend crossed
Mon 2 Nov to Mon 9 Nov75One weekend crossed
Fri 6 Nov to Mon 9 Nov31A weekend is two of the three days
Tue 27 Oct to Thu 24 Dec5842Before public holidays are removed
Whole of 2026365261Starts and ends on a Thursday
A paper planner with dates and a pen
Photo by Ralf Ruppert on Pexels

Leap years and 29 February birthdays

A calendar year is 365 days, but the Earth takes about 365.2422 days to orbit the Sun. Adding a day every four years would overcorrect slightly, so the Gregorian rule has three parts:

  1. A year divisible by 4 is a leap year,
  2. unless it is divisible by 100, in which case it is not,
  3. unless it is also divisible by 400, in which case it is.

So 2024 and 2028 are leap years, 2026 is not, 2000 was (divisible by 400), and 1900 and 2100 are not (divisible by 100 but not 400). The 1900 and 2100 cases catch out home-made spreadsheets and old software; a tool that treats every fourth year as leap will be a day out for any range crossing 1900 or 2100.

Leap days are why "36 years" is not 36 × 365 days. From 15 July 1990 to 15 July 2026 is 13,149 days, which is 13,140 plus 9 leap days (1992, 1996, 2000, 2004, 2008, 2012, 2016, 2020 and 2024). Any tool converting years to days has to count the actual leap days in the range rather than using an average.

Birthdays on 29 February

About 1 in 1,461 people is born on 29 February (one day in four years of 365 + 365 + 365 + 366 days), and their age is a genuine edge case. Most calculators, and most legal systems, treat a leap-day birthday as falling on 1 March in common years, so someone born on 29 February 2000 turns 26 on 1 March 2026. A few jurisdictions and some software use 28 February instead. On 28 February 2026, a strict calculation gives that person 25 years, 11 months and 30 days; on 1 March it gives exactly 26 years. Whichever rule applies, they still get a "real" birthday only every four years; their sixth was 29 February 2024, when they turned 24, and the next is in 2028.

The same ambiguity affects month arithmetic. "One month after 31 January" has no obvious answer because February has no 31st. Some tools clamp to the last day of February; others roll over into March (3 March in 2026). The age calculator borrows from the previous month when the day numbers do not line up, which is the convention most people expect, and it states the result in days as well so there is a figure that cannot be argued with.

How age is counted in different cultures

In most of the world today you are 0 at birth and gain a year on each birthday. That is international age, and it is what nearly every online tool reports. It is not the only system that has been used, and the differences are not small.

SystemAge at birthWhen a year is addedExample: born 31 Dec 2025, on 1 Jan 2026
International age0On each birthday0 (one day old)
Traditional East Asian age1On New Year's Day (lunar or solar, by country)2
"Year age" (Korea, for some legal purposes)0On 1 January1
Completed months (infants)0 monthsOn each month anniversary0 months

In the traditional East Asian system a baby is one at birth and everyone becomes a year older together at New Year, so a child born on the last day of the year is two the next morning. South Korea used this system in everyday life until June 2023, when it standardised on international age for official purposes, though the older counting is still heard in conversation. China, Japan and Vietnam moved to international age earlier but the traditional count survives in some customs and in estimates of age given by older people.

Ages given in months for babies, and in weeks for the first few months, follow the completed-unit rule: a baby is "7 months" from the seventh month anniversary until the eighth. Racehorses in the northern hemisphere all turn a year older on 1 January regardless of birth date, and school year cut-offs apply a similar rule to children. The practical consequence is that when a form asks for age, it is worth knowing which convention it expects, and when an age calculator gives a figure, it is the international one unless it says otherwise.

A wall calendar beside a clock
Photo by Erik Mclean on Pexels

Naegele's rule for due dates, and its limits

Pregnancy due dates are a date calculation with a formula attached. Naegele's rule, named after the nineteenth-century German obstetrician Franz Naegele, estimates the due date as the first day of the last menstrual period (LMP) plus 280 days, which is 40 weeks. The shortcut version is: take the LMP, add one year, subtract three months, add seven days.

LMP 10 June 2026. Add 280 days: 17 March 2027. By the shortcut: 10 June 2027, back three months to 10 March 2027, forward seven days to 17 March 2027. The two methods agree. Twelve weeks from the LMP is 2 September 2026, the usual timing of the dating scan.

They do not always agree, and that is the first limit. The shortcut assumes the three months it subtracts contain 92 days, so that a year minus 92 days plus 7 is 280. With an LMP of 1 March 2026, 280 days gives Sunday 6 December, but the shortcut gives Tuesday 8 December, two days later, because March to December covers months of different lengths. The pregnancy due date calculator adds 280 days directly, which is the definition, rather than using the shortcut.

The bigger limits are biological:

  • It assumes a 28-day cycle with ovulation on day 14. Conception, not the period, is what matters, and the LMP is used only because it is the date most people know. With a 35-day cycle, ovulation is around day 21, so the due date is about a week later than Naegele gives. Many calculators let you enter cycle length and add the difference.
  • It depends on remembering the LMP accurately. A day or two of uncertainty is common; several weeks is not unusual with irregular cycles.
  • Few babies arrive on the day. Only around 4 to 5% are born on the estimated date, and a birth anywhere from 37 to 42 weeks is considered within the normal range. The due date is the centre of a distribution, not a deadline.
  • Ultrasound usually wins. A first-trimester scan measures the embryo directly and is generally more accurate than the LMP. Clinicians typically adopt the scan date when it differs from the LMP date by more than about a week.

Naegele's rule remains useful because it needs nothing but a calendar, and the dating scan is usually booked from it. Treat it as a first estimate that a scan will refine.

Time zones and midnight

"How many days until" sounds like it has one answer, but the answer depends on where you are standing. A date is a 24-hour span, and that span starts at a different moment in every time zone. At 23:30 on Tuesday 10 November in Tokyo it is 14:30 the same day in London and 09:30 in New York, but in Sydney it is already 01:30 on Wednesday 11 November. Ask "how many days until 11 November" in those four places at that instant and Sydney answers 0 while the others answer 1.

This causes real trouble in three situations. Deadlines expressed as a date without a time zone ("submit by 30 June") are ambiguous for anyone not in the organiser's zone; the safe reading is the earliest possible midnight. Online countdowns and age calculators use the clock of the device they run on, so the same page viewed in two countries can show different results for an hour or so either side of midnight. And daylight saving transitions mean one day a year has 23 hours and another has 25, which matters for anything counting hours rather than dates. The time zone converter is the quick way to pin a deadline to a specific moment and see which calendar day it falls on where you are.

Any date calculation that crosses midnight somewhere in the world is only exact once you fix the time zone. If a result matters, write the zone next to the date: "30 June, 23:59 UTC" leaves nothing to interpret.

Where to go next

For a count of days, weeks and working days between two dates, with the inclusive switch and weekend handling visible, use the date difference calculator. For an exact age in years, months and days, and the leap-day case handled, use the age calculator. Both run in your browser and nothing you enter is uploaded.

Related guides: Unix timestamps and time zones for developers.

Frequently asked questions

Do you count the start date when calculating days between dates?

It depends on the question. Subtracting dates gives the gap between them, so 1 January to 10 January is 9 days and the start date is not counted. Counting every date on the calendar, including both ends, gives 10. Most software reports the gap unless you switch on inclusive counting. For notice periods, bookings and courses of medicine, inclusive counting is often what people mean, so check which the rule uses.

How are business days calculated?

Business days are weekdays, Monday to Friday, usually with public holidays removed as well. The start date is normally excluded, so ten business days from a Monday is the Monday two weeks later. Because weekends take two days out of every seven, 58 calendar days can be only 42 working days before holidays are considered. Holidays vary by country and region, so a calculator should state which calendar it uses.

When do people born on 29 February celebrate their birthday?

In common years most calculators and most legal systems treat 29 February birthdays as falling on 1 March, so someone born on 29 February 2000 turns 26 on 1 March 2026. A few jurisdictions use 28 February instead. Their actual date only occurs every four years, with the next one on 29 February 2028. Around 1 in 1,461 people is born on a leap day.

Why is 2100 not a leap year?

Because the Gregorian calendar skips the leap day in years divisible by 100 unless they are also divisible by 400. Adding a day every four years slightly overcorrects for the true length of the year, about 365.2422 days, so three leap days are dropped every 400 years. The year 2000 kept its leap day because it is divisible by 400, but 1900 and 2100 do not. Any date calculator crossing those years must apply the full rule.

How accurate is a due date calculated from my last period?

It is a reasonable first estimate rather than a prediction. Naegele's rule adds 280 days to the first day of the last period, assuming a 28-day cycle with ovulation on day 14. Longer or irregular cycles shift the real date later, and only around 4 to 5% of babies are born on the estimated day. A first-trimester ultrasound measures the embryo directly and is usually adopted when it differs from the period-based date by more than about a week.

Why does a countdown show a different number of days in another country?

Because a calendar date begins at midnight local time, and midnight arrives at different moments around the world. Near the end of a day, one country has already moved on to the next date while another has not, so a countdown or age calculator running on the local clock reports a different figure for a few hours. Fixing a time zone, such as UTC, next to the date removes the ambiguity.

Try the tools from this guide

Keep reading

Related guides

All guides