Profit calculator fixes