BJ 246 then IB 1328 at Frankfurt
Tunis → Frankfurt am Main → Madrid
Timetable, Frankfurt am Main time
17:05BJ 246 from Tunis at the gate
12:10IB 1328 to Madrid leaves the gate
19 h 05 apart on the timetable, overnight
IB 1328 leaves 19 h 05 after BJ 246 arrives on the timetable: more than half a day, so not a connection we count.