Calculates for only grades given