UA 6105 then UA 4166 at O'Hare
Lewisburg → Chicago → Madison
Timetable, Chicago time
12:45UA 6105 from Lewisburg at the gate
10:42UA 4166 to Madison leaves the gate
21 h 57 apart on the timetable, overnight
UA 4166 leaves 21 h 57 after UA 6105 arrives on the timetable: more than half a day, so not a connection we count.