AA 505 then 8C 1231 at Miami
Mexico City → Miami → San Juan
Timetable, Miami time
19:17AA 505 from Mexico City at the gate
15:008C 1231 to San Juan leaves the gate
19 h 43 apart on the timetable, overnight
8C 1231 leaves 19 h 43 after AA 505 arrives on the timetable: more than half a day, so not a connection we count.