Human chorionic gonadotropin as a measure of pregnancy duration