Completed gpa calculation