Imporved: add nextOpenTerm leftTime logic and setTimeout about next day's first term