FR 2540 then IB 531 at Madrid
Bucharest → Madrid → Lisbon
Timetable, Madrid time
13:55FR 2540 from Bucharest at the gate
11:25IB 531 to Lisbon leaves the gatealso CX 1829, VY 5071, QR 5093, AA 8528, AA 8686
21 h 30 apart on the timetable, overnight
IB 531 leaves 21 h 30 after FR 2540 arrives on the timetable: more than half a day, so not a connection we count.