AA 2079 then UA 1864 at Miami
Phoenix → Miami → Newark
Timetable, Miami time
06:32AA 2079 from Phoenix at the gate
06:00UA 1864 to Newark leaves the gate
23 h 28 apart on the timetable, overnight
UA 1864 leaves 23 h 28 after AA 2079 arrives on the timetable: more than half a day, so not a connection we count.