RE:30 Day Rules.Canada works off settlement date (both the buy and the sell).
Remember the rule is just to prevent artifical losses for tax purposes. You can always buy back sooner than 30 days but just not claim the loss (just roll it into your ACB for later).
JFF7