3O 391 then UX 87 at Madrid
Tangier → Madrid → Santo Domingo
Timetable, Madrid time
20:003O 391 from Tangier at the gate
16:10UX 87 to Santo Domingo leaves the gate
20 h 10 apart on the timetable, overnight
UX 87 leaves 20 h 10 after 3O 391 arrives on the timetable: more than half a day, so not a connection we count.