Fixed error in the calculation of the interruption