update grade calculator