U2 8856 then U2 8025 at Gatwick
Enfidha → London → Madrid
Timetable, London time
16:05U2 8856 from Enfidha at the gate
15:30U2 8025 to Madrid leaves the gate
23 h 25 apart on the timetable, overnight
U2 8025 leaves 23 h 25 after U2 8856 arrives on the timetable: more than half a day, so not a connection we count.