An analysis of time-dependent planning