UA 3902 then UA 5584 at O'Hare
Rio De Janeiro → Chicago → Harrisburg
Timetable, Chicago time
17:01UA 3902 from Rio De Janeiro at the gate
10:29UA 5584 to Harrisburg leaves the gate
17 h 28 apart on the timetable, overnight
UA 5584 leaves 17 h 28 after UA 3902 arrives on the timetable: more than half a day, so not a connection we count.