What you could do is create a public AnimationCurve In unity, set the animation so that at 0.5 (50%) the value is 30 and at 0 (0%) and 1 (100%) the value is 0.
Then get a percentage from the value you are trying to convert…
Value/90=Percentage
Then, get the value from the animation curve using that percentage.