FR 2761 then FR 6815 at Madrid
Bari → Madrid → Manchester
Timetable, Madrid time
15:15FR 2761 from Bari at the gate
14:25FR 6815 to Manchester leaves the gate
23 h 10 apart on the timetable, overnight
FR 6815 leaves 23 h 10 after FR 2761 arrives on the timetable: more than half a day, so not a connection we count.