right calc of duration time