calculating gradePoints