You must take capital gains tax into account in your estate planning