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