FR 2540 then IB 545 at Madrid
Bucharest → Madrid → Porto
Timetable, Madrid time
13:55FR 2540 from Bucharest at the gate
11:25IB 545 to Porto leaves the gatealso CX 1867, VY 5306, DT 6092, QR 6930, AA 8665
21 h 30 apart on the timetable, overnight
IB 545 leaves 21 h 30 after FR 2540 arrives on the timetable: more than half a day, so not a connection we count.