How a due date is usually estimated
The standard due-date method starts from the first day of the last menstrual period, often shortened to LMP. By convention, pregnancy is dated as 280 days, or 40 weeks, from that date. This approach assumes a cycle of about 28 days with ovulation around day 14, which is why cycle length can matter when a due date calculator allows you to adjust it.
That is why a pregnancy due date calculator often asks for the first day of the last period rather than the day pregnancy was confirmed. In early pregnancy, clinicians use that estimated due date as a working reference for gestational age, scan timing, and general antenatal milestones.