BA 2817 then U2 8057 at Gatwick
Algiers → London → Barcelona
Timetable, London time
16:10BA 2817 from Algiers at the gate
16:00U2 8057 to Barcelona leaves the gate
23 h 50 apart on the timetable, overnight
U2 8057 leaves 23 h 50 after BA 2817 arrives on the timetable: more than half a day, so not a connection we count.