BA 466 then EC 1704 at Madrid
London Heathrow → Madrid → Nice
Timetable, Madrid time
18:30BA 466 from London Heathrow at the gate
13:10EC 1704 to Nice leaves the gate
18 h 40 apart on the timetable, overnight
EC 1704 leaves 18 h 40 after BA 466 arrives on the timetable: more than half a day, so not a connection we count.