IB 870 then FR 2389 at Madrid
Budapest → Madrid → Tetouan
Timetable, Madrid time
14:30IB 870 from Budapest at the gatealso VY 5508, AA 8834
13:15FR 2389 to Tetouan leaves the gate
22 h 45 apart on the timetable, overnight
FR 2389 leaves 22 h 45 after IB 870 arrives on the timetable: more than half a day, so not a connection we count.