AA 1195 then UA 5522 at O'Hare
Buffalo → Chicago → Kansas City
Timetable, Chicago time
09:05AA 1195 from Buffalo at the gate
08:40UA 5522 to Kansas City leaves the gate
23 h 35 apart on the timetable, overnight
UA 5522 leaves 23 h 35 after AA 1195 arrives on the timetable: more than half a day, so not a connection we count.