UA 5197 then UA 3534 at O'Hare
Albany (New York) → Chicago → Louisville
Timetable, Chicago time
15:45UA 5197 from Albany (New York) at the gate
14:30UA 3534 to Louisville leaves the gate
22 h 45 apart on the timetable, overnight
UA 3534 leaves 22 h 45 after UA 5197 arrives on the timetable: more than half a day, so not a connection we count.