Bonus Depreciation for Qualified Property

Let’s say I purchase a home for rental income purposes and I claim 100% bonus depreciation. I later want to move into the home for personal use though. How long should I keep the rental home as a rental before converting it into personal use? Would 6 months be okay? 1 year?