IB 346 then FR 3876 at Madrid
Boston → Madrid → Tangier
Timetable, Madrid time
08:30IB 346 from Boston at the gate
06:10FR 3876 to Tangier leaves the gate
21 h 40 apart on the timetable, overnight
FR 3876 leaves 21 h 40 after IB 346 arrives on the timetable: more than half a day, so not a connection we count.