Enter lastPeriodDate as the first calendar day on which the most recent menstrual period started, not the final bleeding day or the date of a positive pregnancy test. Use a valid date in the expected year-month-day format. Then enter cycleLength as a whole number of days between the first days of successive periods; this engine allows 21 through 45 days and defaults to 28.
If your cycles fluctuate widely, a single average may hide substantial uncertainty. Double-check month and day, especially when copying dates between countries with different local display conventions. If the last period is unknown, bleeding was unusual, hormonal contraception recently stopped, or cycles have been irregular, do not manufacture an exact date just to obtain an output.
Ask a qualified maternity clinician about other dating methods. The output is an estimated calendar date only; it does not calculate fetal health, confirm pregnancy, determine the safest delivery date, or indicate when labor must begin. For assisted reproduction, embryo-transfer dates require a separate clinical approach and should not be replaced by this last-period formula.
Note the assumptions next to any date you record and defer to the due date documented by your care team when it differs. When comparing records, distinguish the date written on a medical report from the date entered in this educational form. Different reference systems may describe gestational age differently, so document which one you are discussing.
When checking units and date formats, verify that cycleLength is measured in days and the period begins on the entered date. A month/day swap can shift the output dramatically; consistency with the person's clinical record is more important than matching a sample illustration.