E9 858 then FR 3009 at Madrid
San José (Costa Rica) → Madrid → Milan
Timetable, Madrid time
15:10E9 858 from San José (Costa Rica) at the gate
09:15FR 3009 to Milan leaves the gate
18 h 05 apart on the timetable, overnight
FR 3009 leaves 18 h 05 after E9 858 arrives on the timetable: more than half a day, so not a connection we count.