EC 1703 then IB 2332 at Madrid
Nice → Madrid → Badajoz
Timetable, Madrid time
20:40EC 1703 from Nice at the gate
17:55IB 2332 to Badajoz leaves the gate
21 h 15 apart on the timetable, overnight
IB 2332 leaves 21 h 15 after EC 1703 arrives on the timetable: more than half a day, so not a connection we count.