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