Formula Used
Age = Current date − Date of birth, adjusted for whether the birthday has occurred this year.
How the formula is applied
The calculation links Last menstrual period (LMP), Current date and Cycle length (days) to gestational age. Weeks-and-days notation describes elapsed time, so 10 weeks and 4 days is not 10.4 decimal weeks. Different reference methods include different starting assumptions.