Title is a bit nonspecific, so i’ll try to specify more here, i’m trying to interpolate a value depending on two numbers, i’ll leave an example below:

I want to lerp a number depending on how far down another number is from 1, with a lower limit of 0.8, but i don’t know how i would go along with converting that 0.2 gap into a range of 0-1, with 1 being 0 and 0.8 being 1, unfortunately i’m not the best with maths so i can’t really do this on my own, so any help works! thanks in advance, and i will answer as many questions about this (especially because i wrote it like crap)