Leviticus 25:51

51 If there are many years left, he must refund from his purchase price an amount equal [to those years].