public TimeSpan PreferredTimeStep( TimeSpan previousDt, DateTime timeN, bool onFailure, TimeSpan maxDt )