QR 3743 then LL 3104 at Barcelona
Milan → Barcelona → Badajoz
Timetable, Barcelona time
14:55QR 3743 from Milan at the gate
14:00LL 3104 to Badajoz leaves the gate
23 h 05 apart on the timetable, overnight
LL 3104 leaves 23 h 05 after QR 3743 arrives on the timetable: more than half a day, so not a connection we count.