AA 1366 then WN 988 at Denver
Chicago O'Hare → Denver → Buffalo
Timetable, Denver time
13:47AA 1366 from Chicago O'Hare at the gate
11:50WN 988 to Buffalo leaves the gate
22 h 03 apart on the timetable, overnight
WN 988 leaves 22 h 03 after AA 1366 arrives on the timetable: more than half a day, so not a connection we count.