Your due date is calculated by adding 280 days (40 weeks) to the first day of your last menstrual period (assuming a 28 day cycle). Note that your menstrual period and ovulation are counted as the first two weeks of pregnancy. More @Wikipedia
Hover over any link to get a description of the article. Please note that search keywords are sometimes hidden within the full article and don't appear in the description or title.