Take 500K tax free gain or convert primary home to rental property

This old thread may be of help