UA 2397 then AC 1557 at Newark
Los Angeles → New York → Montréal
Timetable, New York time
06:22UA 2397 from Los Angeles at the gate
10:20AC 1557 to Montréal leaves the gate
3 h 58 apart on the timetable
The last days
UA 2397 and AC 1557 weren’t both flown 15 min to 12 h apart in the last 21 days.
Statistics from past flights, not live flight information. Always check times and your connection with your airline, and don’t base travel or booking decisions on these numbers.