AA 988 then 8C 1231 at Miami
Lima → Miami → San Juan
Timetable, Miami time
06:42AA 988 from Lima at the gate
00:008C 1231 to San Juan leaves the gate
17 h 18 apart on the timetable, overnight
8C 1231 leaves 17 h 18 after AA 988 arrives on the timetable: more than half a day, so not a connection we count.