FR 7070 then RO 416 at Madrid
Gdansk → Madrid → Bucharest
Timetable, Madrid time
21:00FR 7070 from Gdansk at the gate
13:40RO 416 to Bucharest leaves the gate
16 h 40 apart on the timetable, overnight
RO 416 leaves 16 h 40 after FR 7070 arrives on the timetable: more than half a day, so not a connection we count.