How to Avoid Capital Gains Tax When Selling Your Home: Key Rules and Tips