UA 1506 then QF 3654 at San Francisco
Miami → San Francisco → New York JFK
Timetable, San Francisco time
12:43UA 1506 from Miami at the gatealso CM 2874, AZ 4406, EK 6034, VA 8395
07:00QF 3654 to New York JFK leaves the gate
18 h 17 apart on the timetable, overnight
QF 3654 leaves 18 h 17 after UA 1506 arrives on the timetable: more than half a day, so not a connection we count.