AA 2939 then UA 225 at Philadelphia
Montego Bay → Philadelphia → San Francisco
Timetable, Philadelphia time
17:55AA 2939 from Montego Bay at the gate
16:38UA 225 to San Francisco leaves the gate
22 h 43 apart on the timetable, overnight
UA 225 leaves 22 h 43 after AA 2939 arrives on the timetable: more than half a day, so not a connection we count.