Grade calculation and rounding methods