Some people have shared their experience of getting it after 3 or 4 months. There is no fixed timeframe, but since B1/B2 does not allow immigrant intent, the expectation is that consular officer must be convinced that you have established residence in Canada.