FR 189 then UX 1015 at Madrid
Edinburgh → Madrid → London Gatwick
Timetable, Madrid time
18:35FR 189 from Edinburgh at the gate
15:00UX 1015 to London Gatwick leaves the gate
20 h 25 apart on the timetable, overnight
UX 1015 leaves 20 h 25 after FR 189 arrives on the timetable: more than half a day, so not a connection we count.