Inheriting Property Is Tax-Free. Selling It Isn't. Here's How the Math Actually Works