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