Fixed calculation of gestational age at birth