AA 871 then AA 5030 at Charlotte
Phoenix → Charlotte → Toronto
Timetable, Charlotte time
13:26AA 871 from Phoenix at the gate
13:00AA 5030 to Toronto leaves the gate
23 h 34 apart on the timetable, overnight
AA 5030 leaves 23 h 34 after AA 871 arrives on the timetable: more than half a day, so not a connection we count.