Actually grade calculations are pretty straightforward that I have an update loop to check the demand power if no supervisor request is there and if the current power is around demand power it increases the points. At the end of the level it gave the percentage which leads to target grades.