FR 3877 then IB 1243 at Madrid
Tangier → Madrid → Bologna
Timetable, Madrid time
22:35FR 3877 from Tangier at the gate
21:20IB 1243 to Bologna leaves the gatealso LA 1730, VY 5554, QR 8085
22 h 45 apart on the timetable, overnight
IB 1243 leaves 22 h 45 after FR 3877 arrives on the timetable: more than half a day, so not a connection we count.