Joel's principal residence is destroyed in a fire in a federally declared disaster area. The insurance compensates Joel for his loss in 2012, which produces a $350,000 realized gain. How long does joel have to purchse a new principal residence and avoid being taxed on the gain?