U2 3209 then U2 2306 at Madrid
Edinburgh → Madrid → London Luton
Timetable, Madrid time
15:45U2 3209 from Edinburgh at the gate
10:35U2 2306 to London Luton leaves the gate
18 h 50 apart on the timetable, overnight
U2 2306 leaves 18 h 50 after U2 3209 arrives on the timetable: more than half a day, so not a connection we count.