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