UA 1230 then WN 1822 at Denver
San Francisco → Denver → Sacramento
Timetable, Denver time
18:00UA 1230 from San Francisco at the gate
16:50WN 1822 to Sacramento leaves the gate
22 h 50 apart on the timetable, overnight
WN 1822 leaves 22 h 50 after UA 1230 arrives on the timetable: more than half a day, so not a connection we count.