formula for profitability