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