Leviticus 25:52

50 He and his purchaser will then count the time from the year he sold himself up to the Year of Jubilee. The price of his sale will be determined by the number of years, based on the daily wages of a hired hand.

51 If many years remain, he must pay for his redemption in proportion to his purchase price.

If only a few years remain until the Year of Jubilee, he is to calculate and pay his redemption according to his remaining years.

53 He shall be treated like a man hired from year to year, but a foreign owner must not rule over him harshly in your sight.

54 Even if he is not redeemed in any of these ways, he and his children shall be released in the Year of Jubilee.

This was said to Israel at a particular time, so it is wise to read it together with the surrounding text. Do read the surrounding verses too, because the context often says more than a single verse.

Compare

BSB
If only a few years remain until the Year of Jubilee, he is to calculate and pay his redemption according to his remaining years.
KJV
And if there remain but few years unto the year of jubile, then he shall count with him, and according unto his years shall he give him again the price of his redemption.
WEB
If there remain but a few years to the year of jubilee, then he shall reckon with him; according to his years of service he shall give back the price of his redemption.
ASV
And if there remain but few years unto the year of jubilee, then he shall reckon with him; according unto his years shall he give back the price of his redemption.
DARBY
and if there remain but few years unto the year of jubilee, then he shall reckon with him; according unto his [remaining] years [of service] shall he give him back his redemption [money].
BLB
And if but a few years remain until the Year of the Jubilee, then he shall reckon with him according to his years; he shall repay him the price of his redemption.
ÅB
Men dersom det er få år tilbake til jubelåret, så skal han gjøre opp med ham etter dem; etter sine tjeneste-år skal han betale sin løsningssum.
OTB
Hvis det bare er noen få år igjen til jubelåret, skal de beregne det og betale for sin innløsning deretter.
B1930
Men dersom det er få år tilbake til jubelåret, så skal han gjøre op med ham efter dem; efter sine tjeneste-år skal han betale sin løsningssum.

Study notes (Tyndale)

Original text and word study