3O 391 then 2W 3409 at Madrid
Tangier → Madrid → Santo Domingo
Timetable, Madrid time
16:403O 391 from Tangier at the gate
16:202W 3409 to Santo Domingo leaves the gate
23 h 40 apart on the timetable, overnight
2W 3409 leaves 23 h 40 after 3O 391 arrives on the timetable: more than half a day, so not a connection we count.