FR 189 then IB 1663 at Madrid
Edinburgh → Madrid → Palma de Mallorca
Timetable, Madrid time
19:25FR 189 from Edinburgh at the gate
12:30IB 1663 to Palma de Mallorca leaves the gate
17 h 05 apart on the timetable, overnight
IB 1663 leaves 17 h 05 after FR 189 arrives on the timetable: more than half a day, so not a connection we count.