What this calculator does
This tool counts the exact number of weeks and days between any two calendar dates. Pick a start date and an end date, and it returns the total number of days, how many complete weeks that represents, and the leftover days. It is popular for pregnancy tracking (where gestational age is expressed as "weeks + days"), but it works equally well for project schedules, subscription periods, anniversaries, or any time you need an elapsed-time count.
How to use it
Enter the earlier date in the Start date field and the later date in the End date field, then read the result. The headline shows the duration as weeks and days, while the table breaks out the total day count, full weeks, and extra days. If you reverse the dates, the calculator uses the absolute difference, so you always get a positive duration.
The formula explained
First the calculator finds the total number of whole days between the two dates: \(\text{totalDays} = \text{end} - \text{start}\). It then divides by 7 and keeps only the whole-number part to get complete weeks, and the remainder becomes the extra days:
$$\text{weeks} = \left\lfloor \frac{\text{totalDays}}{7} \right\rfloor \quad \text{and} \quad \text{days} = \text{totalDays} \bmod 7$$Because a week is exactly 7 days, this conversion is exact and never loses a day.
Worked example
Suppose your start date is 1 January 2024 and your end date is 15 March 2024. The total span is 74 days. Dividing 74 by 7 gives 10 with a remainder of 4, so the result is 10 weeks and 4 days, or 74 days in total.
$$\left\lfloor \frac{74}{7} \right\rfloor = 10, \quad 74 - 7 \times 10 = 4$$
Interpreting Your Result
-
The count excludes the start date. The result is an elapsed-time measurement: the start date is day 0, not day 1. Adding 1 converts it to the inclusive day count used in many contracts, hotel and equipment rental agreements, and statutory notice periods. For example, 1 Jan 2025 → 1 Apr 2025 is 90 elapsed days (12 weeks 6 days), but 91 calendar days inclusive of both endpoints. Which convention applies is set by the specific contract or the law of the relevant jurisdiction — rules on whether the first day counts, and on deadlines falling on weekends or public holidays, differ between countries and even between courts. Check the governing wording rather than assuming.
-
Obstetric convention: completed weeks + days. In clinical obstetrics, gestational age is written as completed weeks plus leftover days with a plus sign — "10+4" means 10 completed weeks and 4 days. It is conventionally measured from the first day of the last menstrual period (LMP), not from conception, which is why the standard term reference is 40 weeks = 280 days from LMP. Boundaries along the way are definitions, not biological thresholds: under the terminology adopted by ACOG (the American College of Obstetricians and Gynecologists, a United States body) and used in WHO materials, early term is 37+0 to 38+6, full term is 39+0 to 40+6, late term is 41+0 to 41+6 and post-term is 42+0 and beyond. Trimester divisions are likewise conventional and are drawn slightly differently by different sources. These are published standards, not advice about any individual pregnancy: an LMP-based figure assumes a regular cycle with ovulation around day 14, and clinical dating is established or revised by a clinician, usually with a first-trimester ultrasound measurement. This section is general information, not medical advice — use your care provider's dates for any clinical decision.
-
Weeks + days is exact; "months" is not. A week is always exactly 7 days, so a weeks-and-days result is unambiguous and reversible: \(D = 7W + d\). A month is not a fixed length — it ranges from 28 to 31 days. That is why 8 weeks 0 days (56 days) is not the same as 2 months, which could be 59, 60, 61 or 62 days depending on where in the calendar it falls. For tracking sprints, notice periods, medication schedules or gestational age, quote weeks and days; convert to months only when the audience expects an approximation.
-
The leftover days value is always 0 to 6. It is the remainder after dividing by 7, so it can never reach 7. A remainder of 0 means the span is a whole number of weeks and the two dates therefore fall on the same weekday — 1 Mar 2024 and 15 Mar 2024 are both Fridays. Any non-zero remainder \(d\) shifts the weekday forward by \(d\) days, which is a quick way to sanity-check a result: 365 days is 52 weeks 1 day, so a date moves forward one weekday from one ordinary year to the next, and two weekdays across a leap day.
FAQ
Does it count both the start and end day? No. It measures the gap between the two dates, so the same date entered twice returns 0 days.
Why does the order of dates not matter? The calculator uses the absolute difference, so swapping start and end still gives the same positive number of weeks and days.
Is this accurate for pregnancy weeks? Yes — gestational age is conventionally written as completed weeks plus extra days, which is exactly what this calculator produces from your chosen reference date.