Leviticus 25:52

If few, he shall determine the accounting with him according to the number of years, and he shall repay to the buyer by what is left remaining of the years

Other versions

King James Version

And if there remain but few years unto the year of jubile, then he shall count with him, and according unto his years shall he give him again the price of his redemption.

English Standard Version

If there remain but a few years until the year of jubilee, he shall calculate and pay for his redemption in proportion to his years of service.

New International Version

If only a few years remain until the Year of Jubilee, he is to compute that and pay for his redemption accordingly.