W4 3171 then I2 1743 at Madrid
Bucharest → Madrid → Málaga
Timetable, Madrid time
09:45W4 3171 from Bucharest at the gate
22:35I2 1743 to Málaga leaves the gatealso IB 1743
12 h 50 apart on the timetable
I2 1743 leaves 12 h 50 after W4 3171 arrives on the timetable: more than half a day, so not a connection we count.