Diagnosis is primarily based on the estimated due date, which is calculated from the first day of the last menstrual period or ultrasound measurements taken during the first trimester. If a pregnancy extends beyond 42 weeks, it is classified as post term.