Cost and Profit Calculation