FR 4586 then FR 8384 at Barcelona
Porto → Barcelona → Budapest
Timetable, Barcelona time
21:10FR 4586 from Porto at the gate
17:00FR 8384 to Budapest leaves the gate
19 h 50 apart on the timetable, overnight
FR 8384 leaves 19 h 50 after FR 4586 arrives on the timetable: more than half a day, so not a connection we count.