FR 270 then IB 2334 at Barcelona
Milan → Barcelona → Badajoz
Timetable, Barcelona time
17:10FR 270 from Milan at the gate
13:50IB 2334 to Badajoz leaves the gate
20 h 40 apart on the timetable, overnight
IB 2334 leaves 20 h 40 after FR 270 arrives on the timetable: more than half a day, so not a connection we count.