calculate the number broken