4Y 803 then DE 4004 at Frankfurt
Bari → Frankfurt am Main → Berlin
Timetable, Frankfurt am Main time
20:104Y 803 from Bari at the gate
14:30DE 4004 to Berlin leaves the gate
18 h 20 apart on the timetable, overnight
DE 4004 leaves 18 h 20 after 4Y 803 arrives on the timetable: more than half a day, so not a connection we count.