AA 674 then 8C 1231 at Miami
Philadelphia → Miami → San Juan
Timetable, Miami time
16:00AA 674 from Philadelphia at the gate
15:008C 1231 to San Juan leaves the gate
23 h apart on the timetable, overnight
8C 1231 leaves 23 h after AA 674 arrives on the timetable: more than half a day, so not a connection we count.