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