Leviticus 25:52 in the World English Bible
If there remain but a few years to the year of jubilee, then he shall reckon with him; according to his years of service he shall give back the price of his redemption.
Context
51 If there be yet many years behind, according unto them he shall give again the price of his redemption out of the money that he was bought for.
52 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.
53 And as a yearly hired servant shall he be with him: and the other shall not rule with rigour over him in thy sight.