then he shall calculate the years of its selling, and he shall refund the balance to the man to whom he sold it, and he shall return to his property.