FR 2527 then IB 1401 at Madrid
Berlin → Madrid → Valencia
Timetable, Madrid time
12:30FR 2527 from Berlin at the gate
11:30IB 1401 to Valencia leaves the gate
23 h apart on the timetable, overnight
IB 1401 leaves 23 h after FR 2527 arrives on the timetable: more than half a day, so not a connection we count.