WN 4626 then UA 5040 at Denver
Nashville → Denver → Riverton
Timetable, Denver time
18:00WN 4626 from Nashville at the gate
12:15UA 5040 to Riverton leaves the gate
18 h 15 apart on the timetable, overnight
UA 5040 leaves 18 h 15 after WN 4626 arrives on the timetable: more than half a day, so not a connection we count.