U2 8004 then U2 8317 at Gatwick
Almeria → London → Pisa
Timetable, London time
14:35U2 8004 from Almeria at the gate
09:00U2 8317 to Pisa leaves the gate
18 h 25 apart on the timetable, overnight
U2 8317 leaves 18 h 25 after U2 8004 arrives on the timetable: more than half a day, so not a connection we count.