FR 573 then IB 351 at Madrid
Porto → Madrid → Los Angeles
Timetable, Madrid time
14:35FR 573 from Porto at the gate
12:45IB 351 to Los Angeles leaves the gate
22 h 10 apart on the timetable, overnight
IB 351 leaves 22 h 10 after FR 573 arrives on the timetable: more than half a day, so not a connection we count.