3O 391 then IB 1145 at Madrid
Tangier → Madrid → Lisbon
Timetable, Madrid time
20:003O 391 from Tangier at the gate
19:40IB 1145 to Lisbon leaves the gatealso LA 1670, VY 5748
23 h 40 apart on the timetable, overnight
IB 1145 leaves 23 h 40 after 3O 391 arrives on the timetable: more than half a day, so not a connection we count.