fixed grade calculation for student record