If you’re leaving money to heirs, you need to consider more than just your own situation.