If you sold a stock this year and are staring at a fat capital gains bill, here is a rule buried in the tax code that most brokers never mention: you can roll that gain into real estate or a business ...