Cost function and break-even analysis