U2 3209 then FR 404 at Madrid
Edinburgh → Madrid → Palma de Mallorca
Timetable, Madrid time
20:05U2 3209 from Edinburgh at the gate
20:00FR 404 to Palma de Mallorca leaves the gate
23 h 55 apart on the timetable, overnight
FR 404 leaves 23 h 55 after U2 3209 arrives on the timetable: more than half a day, so not a connection we count.