Calculates GPA when a class is deleted