add grade calc