WN 1018 then WN 1817 at Denver
Cancún → Denver → San Francisco
Timetable, Denver time
18:45WN 1018 from Cancún at the gate
17:35WN 1817 to San Francisco leaves the gate
22 h 50 apart on the timetable, overnight
WN 1817 leaves 22 h 50 after WN 1018 arrives on the timetable: more than half a day, so not a connection we count.