IB 870 then EC 1704 at Madrid
Budapest → Madrid → Nice
Timetable, Madrid time
14:30IB 870 from Budapest at the gatealso VY 5508, AA 8834
13:10EC 1704 to Nice leaves the gate
22 h 40 apart on the timetable, overnight
EC 1704 leaves 22 h 40 after IB 870 arrives on the timetable: more than half a day, so not a connection we count.