Dynamic gradebook recalculation to determine final grade