UA 1729 then WN 1822 at Denver
Newark → Denver → Sacramento
Timetable, Denver time
17:54UA 1729 from Newark at the gate
16:50WN 1822 to Sacramento leaves the gate
22 h 56 apart on the timetable, overnight
WN 1822 leaves 22 h 56 after UA 1729 arrives on the timetable: more than half a day, so not a connection we count.