How to find marginal profit