make time labels depend on step size