UA 602 then AA 1841 at Phoenix
Miami → Phoenix → Ontario
Timetable, Phoenix time
23:40UA 602 from Miami at the gate
21:35AA 1841 to Ontario leaves the gate
21 h 55 apart on the timetable, overnight
AA 1841 leaves 21 h 55 after UA 602 arrives on the timetable: more than half a day, so not a connection we count.