Leviticus 25:50-53

MKJV(i) 50 And he shall count with his buyer from the year that he was sold to him, until the year of jubilee. And the price of his sale shall be according to the number of years, according to the time of a hired servant it shall be with him. 51 If there are still many years, he shall give again the price of his redemption out of the silver that he was bought for, according to the years. 52 And if there remain but few years to the year of jubilee, then he shall count with him, and according to his years he shall give him again the price of his redemption. 53 As a yearly hired servant he shall be with him; he shall not rule with harshness in your sight.