UA 1136 then WN 1822 at Denver
Cancún → Denver → Sacramento
Timetable, Denver time
17:48UA 1136 from Cancún at the gate
16:50WN 1822 to Sacramento leaves the gate
23 h 02 apart on the timetable, overnight
WN 1822 leaves 23 h 02 after UA 1136 arrives on the timetable: more than half a day, so not a connection we count.