U2 866 then BA 2666 at Gatwick
Glasgow → London → Porto
Timetable, London time
15:55U2 866 from Glasgow at the gate
14:25BA 2666 to Porto leaves the gate
22 h 30 apart on the timetable, overnight
BA 2666 leaves 22 h 30 after U2 866 arrives on the timetable: more than half a day, so not a connection we count.