iPhone - How to set up not requiring passcode if recently closed
I believe the setting you are looking for is Settings > Touch ID and Passcode > Require Passcode.

It should be noted that using a Microsoft Exchange account in email can effect the options available here.  For example the only option on my phone is "immediately".  this thread is how i finally learned why I only have the option "immediately".