U2 8025 then EC 1704 at Madrid
London Gatwick → Madrid → Nice
Timetable, Madrid time
19:00U2 8025 from London Gatwick at the gate
13:10EC 1704 to Nice leaves the gate
18 h 10 apart on the timetable, overnight
EC 1704 leaves 18 h 10 after U2 8025 arrives on the timetable: more than half a day, so not a connection we count.