I am trying to populate a range input in my application with dynamic min and max values. I am returned a default number from the server and need to determine the min (1/5 of default) and max (5x's default) values to set on the range input. The default value, what the range is currently set to, must be in the middle of the slider.
For example:
min (1/5 of 700) |______________| default (ex. 700) |_______________| max (5x's700)