Uhhh, you'll likely have to go back through security and customs in Edmonton.
If your departing airport (Edmonton) has US preclearance (it does), you'll do customs there. I can't see any way the US would let you do preclearance in Calgary and then fly to another Canadian city.
|