The timing of education