update duration time