EC 7646 then FR 3682 at Lisbon
Madrid → Lisbon → Málaga
Timetable, Lisbon time
18:25EC 7646 from Madrid at the gate
15:10FR 3682 to Málaga leaves the gate
20 h 45 apart on the timetable, overnight
FR 3682 leaves 20 h 45 after EC 7646 arrives on the timetable: more than half a day, so not a connection we count.