Fix the calculation of the duration as well.