IB 333 then 8C 1231 at Miami
Madrid → Miami → San Juan
Timetable, Miami time
16:50IB 333 from Madrid at the gate
15:008C 1231 to San Juan leaves the gate
22 h 10 apart on the timetable, overnight
8C 1231 leaves 22 h 10 after IB 333 arrives on the timetable: more than half a day, so not a connection we count.