You can calculate your due date if you know the first day of your last menstrual period (LMP) before you got pregnant. Your due date is 40 weeks after the day you started your last period.