2W 3410 then FR 394 at Madrid
Santo Domingo → Madrid → Ibiza
Timetable, Madrid time
12:252W 3410 from Santo Domingo at the gate
06:40FR 394 to Ibiza leaves the gate
18 h 15 apart on the timetable, overnight
FR 394 leaves 18 h 15 after 2W 3410 arrives on the timetable: more than half a day, so not a connection we count.