FR 2540 then IB 563 at Madrid
Bucharest → Madrid → Málaga
Timetable, Madrid time
13:55FR 2540 from Bucharest at the gate
11:25IB 563 to Málaga leaves the gatealso QR 8092, AA 8779
21 h 30 apart on the timetable, overnight
IB 563 leaves 21 h 30 after FR 2540 arrives on the timetable: more than half a day, so not a connection we count.