Made adjustments to calculations in calculateArc