Leviticus 25:50-52 New Life Version (NLV)
50 With the one who bought him he will add the years from the year he sold himself until the Year of Jubilee. The price for him to be set free will be decided upon by the number of years. The time he was with the man who owned him will be as that of a man paid to work for him. 51 If there are still many years, he will return a part of the price which was given for him. 52 If there is only a few years until the Year of Jubilee, he will decide upon the amount of money with his owner. He should pay the price to be set free, decided upon by the number of years.