FR 3008 then IB 2318 at Madrid
Milan → Madrid → Castellón
Timetable, Madrid time
19:50FR 3008 from Milan at the gate
16:00IB 2318 to Castellón leaves the gate
20 h 10 apart on the timetable, overnight
IB 2318 leaves 20 h 10 after FR 3008 arrives on the timetable: more than half a day, so not a connection we count.