dynamically decides the simulation horizon to obtain steady state