BA 8341 then AA 1400 at San Francisco
New York JFK → San Francisco → Miami
Timetable, San Francisco time
23:54BA 8341 from New York JFK at the gate
21:46AA 1400 to Miami leaves the gate
21 h 52 apart on the timetable, overnight
AA 1400 leaves 21 h 52 after BA 8341 arrives on the timetable: more than half a day, so not a connection we count.