If I inherited stock do I only pay taxes on the amount of gain I acquired from the time the stock was transferred to my name till the time I cashed it out?