Quick answer
A flight stays within one country when it departs and lands there, with no international leg. New York to Chicago never leaves the US; Toronto to Vancouver never leaves Canada. Flights to another country — or routes that touch one en route — are international.
