Your iPhone passcode will always remain valid as long as you want. Therefore, it will only expire if you change it or other third-party apps reject it.