Internal Revenue Taxation provides a great explanation of the three methods of calculating time in the USA for Canadians.

If I quickly calculate a trip that we leave Canada the 1st of September and return the third week of may the calculation of 182 days would place our absence time under the 183 tax limit.¬† This would be true if we didn’t travel into the USA in 2019.