UX 1013 then U2 8055 at Gatwick
Madrid → London → Barcelona
Timetable, London time
09:00UX 1013 from Madrid at the gate
06:55U2 8055 to Barcelona leaves the gate
21 h 55 apart on the timetable, overnight
U2 8055 leaves 21 h 55 after UX 1013 arrives on the timetable: more than half a day, so not a connection we count.