I know there are solutions to this, but for some reason they don't seem to work correctly in my scenario.
I need to weight an actual value against a nominal value and a certain upper and lower tolerance threshold.
In order to work with it in a way that makes sense to me as a programmer, I'd like to have my nominal value Vn
to be 0% whereas my positive tolerance treshold Tu
would be 100%. So any value above that tolerance field would be >100%. I need the same for a lower tolerance threshold Tl
. Now there are plenty of scenarios where I would have a negative lower threshold and a positive nominal and upper threshold whereas the actual value could lie anywhere in between or outside those boundaries.
I guess there's no universal algorithm, so I probably would need two, one considering the lower threshold as 100% and one that considers the upper as 100%.
I stumbled across this Thread which comes close to what I want. I tried it in Excel and indeed I get 100% for my upper threshold. But it seems to scale wrong as my nominal value is not 0% and double the threshold is way beyond 200%.
I tried a lot but I can't figure out how to get this working correctly.