UA 3874 then UA 3502 at O'Hare
Chicago → Chicago → Louisville
Timetable, Chicago time
01:21UA 3874 from Chicago at the gate
19:55UA 3502 to Louisville leaves the gate
18 h 34 apart on the timetable
UA 3502 leaves 18 h 34 after UA 3874 arrives on the timetable: more than half a day, so not a connection we count.