2W 3504 then I2 1743 at Madrid
Punta Cana → Madrid → Málaga
Timetable, Madrid time
10:052W 3504 from Punta Cana at the gate
22:40I2 1743 to Málaga leaves the gatealso IB 1743
12 h 35 apart on the timetable
I2 1743 leaves 12 h 35 after 2W 3504 arrives on the timetable: more than half a day, so not a connection we count.