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