FR 189 then FR 7921 at Madrid
Edinburgh → Madrid → Shannon
Timetable, Madrid time
18:35FR 189 from Edinburgh at the gate
09:45FR 7921 to Shannon leaves the gate
15 h 10 apart on the timetable, overnight
FR 7921 leaves 15 h 10 after FR 189 arrives on the timetable: more than half a day, so not a connection we count.