FR 6712 then IB 409 at Madrid
Budapest → Madrid → Barcelona
Timetable, Madrid time
18:10FR 6712 from Budapest at the gate
10:25IB 409 to Barcelona leaves the gatealso LA 1624, CX 1827, LL 3009, VY 5116, AV 6078, BA 7129, QR 7246
16 h 15 apart on the timetable, overnight
IB 409 leaves 16 h 15 after FR 6712 arrives on the timetable: more than half a day, so not a connection we count.