Leviticus 25:50
They will negotiate the price of their freedom with the person who bought them. The price will be based on the number of years from the time they were sold until the next Year of Jubilee—whatever it would cost to hire a worker for that period of time.