FR 7283 then IB 2332 at Madrid
Torino → Madrid → Badajoz
Timetable, Madrid time
23:25FR 7283 from Torino at the gate
17:55IB 2332 to Badajoz leaves the gatealso AT 5350
18 h 30 apart on the timetable, overnight
IB 2332 leaves 18 h 30 after FR 7283 arrives on the timetable: more than half a day, so not a connection we count.