FR 7466 then IB 787 at Madrid
Tangier → Madrid → Berlin
Timetable, Madrid time
22:00FR 7466 from Tangier at the gate
19:55IB 787 to Berlin leaves the gatealso LA 1540, VY 5167
21 h 55 apart on the timetable, overnight
IB 787 leaves 21 h 55 after FR 7466 arrives on the timetable: more than half a day, so not a connection we count.