GPA: trying to calculate the correct value