Cost analysis and profitability