FR 7070 then UX 1145 at Madrid
Gdansk → Madrid → Porto
Timetable, Madrid time
21:00FR 7070 from Gdansk at the gate
10:35UX 1145 to Porto leaves the gate
13 h 35 apart on the timetable, overnight
UX 1145 leaves 13 h 35 after FR 7070 arrives on the timetable: more than half a day, so not a connection we count.