How to calculate capital gains from inherited property