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