Leviticus 25:27

the produce shall be calculated from that time when he sold it. And what is lacking, he shall repay to the buyer, and so he shall receive his possession

Other versions

King James Version

Then let him count the years of the sale thereof, and restore the overplus unto the man to whom he sold it; that he may return unto his possession.

English Standard Version

let him calculate the years since he sold it and pay back the balance to the man to whom he sold it, and then return to his property.

New International Version

he is to determine the value for the years since he sold it and refund the balance to the man to whom he sold it; he can then go back to his own property.