It’s typically best to fly out from Chicago to Cody in the morning. Doing so could potentially save you 3% on the flight price compared to flying in the afternoon, which is usually more expensive.
It’s generally more expensive to depart on a Wednesday, if you have to leave on this day you can still search on Cheapflights to find great options that meet your needs.