If you have a multiple entry then whenever you want although generally most recommend spending at least same amount of time out of Canada as you spent in Canada as a visitor. There is no real rule and often can just depend on the CBSA officer at the time how long you are allowed to stay on each entry.