FR 3040 then IB 5096 at Barcelona
Prague → Barcelona → Porto
Timetable, Barcelona time
21:15FR 3040 from Prague at the gate
20:25IB 5096 to Porto leaves the gate
23 h 10 apart on the timetable, overnight
IB 5096 leaves 23 h 10 after FR 3040 arrives on the timetable: more than half a day, so not a connection we count.