W6 1701 then FR 572 at Madrid
Gdansk → Madrid → Porto
Timetable, Madrid time
09:45W6 1701 from Gdansk at the gate
22:40FR 572 to Porto leaves the gate
12 h 55 apart on the timetable
FR 572 leaves 12 h 55 after W6 1701 arrives on the timetable: more than half a day, so not a connection we count.