Passport check against the destination's rule (6 months, Schengen's 3 months after leaving and 10 years since issue, blank pages) that names the exact date it must last until and offers the latest return that would pass. Default rules carry sources and can be replaced.