Fixed GPA algorithm