Leviticus 25:50-55 NIV

50 He and his buyer are to count the time from the year he sold himself up to the Year of Jubilee.1 The price for his release is to be based on the rate paid to a hired man2 for that number of years.

References for Leviticus 25:50

51 If many years remain, he must pay for his redemption a larger share of the price paid for him.
52 If only a few years remain until the Year of Jubilee, he is to compute that and pay for his redemption accordingly.3

References for Leviticus 25:52

      53 He is to be treated as a man hired from year to year; you must see to it that his owner does not rule over him ruthlessly.4

      References for Leviticus 25:53

      54 " 'Even if he is not redeemed in any of these ways, he and his children are to be released in the Year of Jubilee,
      55 for the Israelites belong to me as servants. They are my servants, whom I brought out of Egypt.5 I am the LORD your God.6

      References for Leviticus 25:55