Kevin O'Leary: Here's when you should take on a mortgage