After you file

If you owe, go to the IRS "Make a payment" page and select EXTENSION.

if you know you are getting a refund, you don't need an extension of time.