the physical presence calculator has nothing to do with the actual stamp dates. according to the calculator, if you leave Canada on July 1st and let's assume you come back on same day 1st july or a day after on 2nd July (all times Canadian), it would still be counted as "ZERO" days outside...