AA 2189 then AA 5217 at Charlotte
Madison → Charlotte → Harrisburg
Timetable, Charlotte time
21:47AA 2189 from Madison at the gate
21:40AA 5217 to Harrisburg leaves the gate
23 h 53 apart on the timetable, overnight
AA 5217 leaves 23 h 53 after AA 2189 arrives on the timetable: more than half a day, so not a connection we count.