AA 1004 then AA 5995 at Charlotte
Boston → Charlotte → Erie
Timetable, Charlotte time
09:44AA 1004 from Boston at the gate
09:18AA 5995 to Erie leaves the gate
23 h 34 apart on the timetable, overnight
AA 5995 leaves 23 h 34 after AA 1004 arrives on the timetable: more than half a day, so not a connection we count.