AA 835 then UA 5191 at O'Hare
Miami → Chicago → Lancaster
Timetable, Chicago time
15:31AA 835 from Miami at the gate
08:50UA 5191 to Lancaster leaves the gate
17 h 19 apart on the timetable, overnight
UA 5191 leaves 17 h 19 after AA 835 arrives on the timetable: more than half a day, so not a connection we count.