WN 3525 then UA 5787 at Denver
Chicago Midway → Denver → Rapid City
Timetable, Denver time
20:20WN 3525 from Chicago Midway at the gate
15:45UA 5787 to Rapid City leaves the gate
19 h 25 apart on the timetable, overnight
UA 5787 leaves 19 h 25 after WN 3525 arrives on the timetable: more than half a day, so not a connection we count.