Profit calculation