FR 393 then FR 7071 at Madrid
Ibiza → Madrid → Gdansk
Timetable, Madrid time
16:45FR 393 from Ibiza at the gate
10:15FR 7071 to Gdansk leaves the gate
17 h 30 apart on the timetable, overnight
FR 7071 leaves 17 h 30 after FR 393 arrives on the timetable: more than half a day, so not a connection we count.