Fix formula for correct arc calculation.