calculatePercentageCurve in CourseCurve updated