Grade calculation, form styling