Create maxProfit