If you were having regular periods before pregnancy, your doctor will calculate your due date based off of your last menstrual period. This goes back to the fact that in order to get pregnant, your body ovulated—or released an egg—roughly in the middle of your cycle and it was fertilized by sperm.