Should your default US time will almost certainly run out when you are in Canada, and you wish to return into the US direct from Canada, you need to make an application for a US visa with an extended time frame (eg B-1/B-2, or a C-1 transit visa) in advance of your 1st excursion from the US. As an example, in case you are going to remain in Canada