Naive algorithm for adaptive time step