UA 5704 then AA 3974 at O'Hare
Toronto Pearson → Chicago → Harrisburg
Timetable, Chicago time
20:48UA 5704 from Toronto Pearson at the gate
10:35AA 3974 to Harrisburg leaves the gate
13 h 47 apart on the timetable, overnight
AA 3974 leaves 13 h 47 after UA 5704 arrives on the timetable: more than half a day, so not a connection we count.