FR 3040 then IB 418 at Barcelona
Prague → Barcelona → Madrid
Timetable, Barcelona time
21:15FR 3040 from Prague at the gate
18:00IB 418 to Madrid leaves the gatealso IB 418S, LA 1585, CX 1836, LL 3018, VY 5082, AV 6019, QR 6562
20 h 45 apart on the timetable, overnight
IB 418 leaves 20 h 45 after FR 3040 arrives on the timetable: more than half a day, so not a connection we count.