To maximize profits, a firm should continue to increase production of a good until: