EW 2522 then AH 2015 at Barcelona
Stuttgart → Barcelona → Algiers
Timetable, Barcelona time
20:00EW 2522 from Stuttgart at the gate
19:05AH 2015 to Algiers leaves the gate
23 h 05 apart on the timetable, overnight
AH 2015 leaves 23 h 05 after EW 2522 arrives on the timetable: more than half a day, so not a connection we count.