I have a sensor which gives me a raw input of the range 4000-20000. This represents a scaled range of 0-1450. Can anyone give me a formula that will allow me to calculate the scaled value from the raw one.

I’ll make up an example: I get a raw reading of 12456. How do I convert that to a scaled value? I know you can do it in Groov with the scaling tool but I need to do it as a formula.

Thanks,

Dave