how to calculate the Grade??