Grade is calculated and prediction bar is updated