FR 499 then W6 1702 at Madrid
London Stansted → Madrid → Gdansk
Timetable, Madrid time
16:00FR 499 from London Stansted at the gate
10:40W6 1702 to Gdansk leaves the gate
18 h 40 apart on the timetable, overnight
W6 1702 leaves 18 h 40 after FR 499 arrives on the timetable: more than half a day, so not a connection we count.