Onload calculation of new GPA