FR 9914 then FR 4585 at Barcelona
Tallinn → Barcelona → Porto
Timetable, Barcelona time
00:50FR 9914 from Tallinn at the gate
19:20FR 4585 to Porto leaves the gate
18 h 30 apart on the timetable
FR 4585 leaves 18 h 30 after FR 9914 arrives on the timetable: more than half a day, so not a connection we count.