updateRemainingTime