U2 8284 then U2 8025 at Gatwick
Milan → London → Madrid
Timetable, London time
20:25U2 8284 from Milan at the gate
15:30U2 8025 to Madrid leaves the gate
19 h 05 apart on the timetable, overnight
U2 8025 leaves 19 h 05 after U2 8284 arrives on the timetable: more than half a day, so not a connection we count.