EC 7640 then FR 1768 at Lisbon
Madrid → Lisbon → Valencia
Timetable, Lisbon time
09:25EC 7640 from Madrid at the gate
21:40FR 1768 to Valencia leaves the gate
12 h 15 apart on the timetable
FR 1768 leaves 12 h 15 after EC 7640 arrives on the timetable: more than half a day, so not a connection we count.