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