AA 5995 then UA 3478 at Charlotte
Erie → Charlotte → Newark
Timetable, Charlotte time
14:56AA 5995 from Erie at the gate
14:54UA 3478 to Newark leaves the gate
23 h 58 apart on the timetable, overnight
UA 3478 leaves 23 h 58 after AA 5995 arrives on the timetable: more than half a day, so not a connection we count.