Leviticus 25:51-52

CAB(i) 51 And if any have a greater number of years remaining, according to these he shall pay his ransom out of his purchase money. 52 And if but a little time is left of the years to the year of release, then shall he reckon to him according to his years, and shall pay his ransom as a hireling.