Factors affecting marginal costs