IB 782 then FR 188 at Madrid
Berlin → Madrid → Edinburgh
Timetable, Madrid time
14:50IB 782 from Berlin at the gatealso VY 5083, AA 8506
05:55FR 188 to Edinburgh leaves the gate
15 h 05 apart on the timetable, overnight
FR 188 leaves 15 h 05 after IB 782 arrives on the timetable: more than half a day, so not a connection we count.