DY 3510 then U2 8017 at Gatwick
Copenhagen → London → Madrid
Timetable, London time
09:25DY 3510 from Copenhagen at the gate
09:05U2 8017 to Madrid leaves the gate
23 h 40 apart on the timetable, overnight
U2 8017 leaves 23 h 40 after DY 3510 arrives on the timetable: more than half a day, so not a connection we count.