FR 3008 then EC 4390 at Madrid
Milan → Madrid → Lyon
Timetable, Madrid time
19:50FR 3008 from Milan at the gate
17:40EC 4390 to Lyon leaves the gate
21 h 50 apart on the timetable, overnight
EC 4390 leaves 21 h 50 after FR 3008 arrives on the timetable: more than half a day, so not a connection we count.