Imporved: add nextOpenTerm leftTime logic