The nearest expiration date for Cotton Futures (Jul 2019) is Jun 21, 2019.
The best time to sell a futures contract is when you've already made money on the investment, but still have plenty of time left before the expiration date. Thus, a good option would be to sell Cotton Futures (Jul 2019) before Jun 21, 2019.