FR 6945 then FR 4587 at Barcelona
Warsaw Modlin → Barcelona → Porto
Timetable, Barcelona time
17:00FR 6945 from Warsaw Modlin at the gate
09:50FR 4587 to Porto leaves the gate
16 h 50 apart on the timetable, overnight
FR 4587 leaves 16 h 50 after FR 6945 arrives on the timetable: more than half a day, so not a connection we count.