Leviticus 25:16

According to the multitude of years thou shalt increase the price thereof, and according to the fewness of years thou shalt diminish the price of it: for according to the number of the years of the fruits doth he sell unto thee.

Cross-references

Leviticus 27:18 also adjusts field value based on remaining years to jubilee, mirroring the same logic.