EC 8064 then BA 2067 at Gatwick
Barcelona → London → Accra
Timetable, London time
15:00EC 8064 from Barcelona at the gate
11:45BA 2067 to Accra leaves the gate
20 h 45 apart on the timetable, overnight
BA 2067 leaves 20 h 45 after EC 8064 arrives on the timetable: more than half a day, so not a connection we count.