A microeconomic analysis of the timing of births