Deductions & credits

Nope ... you are simply selling a second home that you have been letting  family live in so you will pay taxes on the long term cap gains no matter what the proceeds  will eventually be used for.