WN 1018 then WN 4740 at Denver
Cancún → Denver → Ontario
Timetable, Denver time
18:45WN 1018 from Cancún at the gate
18:30WN 4740 to Ontario leaves the gate
23 h 45 apart on the timetable, overnight
WN 4740 leaves 23 h 45 after WN 1018 arrives on the timetable: more than half a day, so not a connection we count.