How to compute adjusted basis for home sale