BY 4157 then BY 356 at Gatwick
Budapest → London → Agadir
Timetable, London time
13:15BY 4157 from Budapest at the gate
08:50BY 356 to Agadir leaves the gate
19 h 35 apart on the timetable, overnight
BY 356 leaves 19 h 35 after BY 4157 arrives on the timetable: more than half a day, so not a connection we count.