W6 2375 then FR 4587 at Barcelona
Budapest → Barcelona → Porto
Timetable, Barcelona time
08:40W6 2375 from Budapest at the gate
22:55FR 4587 to Porto leaves the gate
14 h 15 apart on the timetable
FR 4587 leaves 14 h 15 after W6 2375 arrives on the timetable: more than half a day, so not a connection we count.