how to calculate profitability