U2 8514 then U2 8651 at Gatwick
Lisbon → London → Paphos
Timetable, London time
09:55U2 8514 from Lisbon at the gate
07:15U2 8651 to Paphos leaves the gate
21 h 20 apart on the timetable, overnight
U2 8651 leaves 21 h 20 after U2 8514 arrives on the timetable: more than half a day, so not a connection we count.