UA 3501 then UA 5838 at O'Hare
Kansas City → Chicago → Louisville
Timetable, Chicago time
17:05UA 3501 from Kansas City at the gate
14:30UA 5838 to Louisville leaves the gate
21 h 25 apart on the timetable, overnight
UA 5838 leaves 21 h 25 after UA 3501 arrives on the timetable: more than half a day, so not a connection we count.