WN 3525 then UA 731 at Denver
Chicago Midway → Denver → Buffalo
Timetable, Denver time
20:20WN 3525 from Chicago Midway at the gate
17:25UA 731 to Buffalo leaves the gate
21 h 05 apart on the timetable, overnight
UA 731 leaves 21 h 05 after WN 3525 arrives on the timetable: more than half a day, so not a connection we count.