// New profitability calculation