Leviticus 25:52

MSB(i) 52 If only a few years remain until the Year of Jubilee, he is to calculate and pay his redemption according to his remaining years.