Profit and discount calculations