3O 391 then IB 1577 at Madrid
Tangier → Madrid → Tenerife North
Timetable, Madrid time
16:403O 391 from Tangier at the gate
16:05IB 1577 to Tenerife North leaves the gate
23 h 25 apart on the timetable, overnight
IB 1577 leaves 23 h 25 after 3O 391 arrives on the timetable: more than half a day, so not a connection we count.