U2 8704 then U2 8523 at Gatwick
Agadir → London → Porto
Timetable, London time
22:45U2 8704 from Agadir at the gate
16:55U2 8523 to Porto leaves the gate
18 h 10 apart on the timetable, overnight
U2 8523 leaves 18 h 10 after U2 8704 arrives on the timetable: more than half a day, so not a connection we count.