Found solution add
let sliderMinValue = document.getElementById(“slider-1”).min;
than you can use
percent1 = Math.round( 100 * ( ( sliderOne.value – sliderMinValue ) / ( sliderMaxValue – sliderMinValue ) ) ) – 0.5;
percent2 = Math.round( 100 * ( ( sliderTwo.value – sliderMinValue ) / ( sliderMaxValue – sliderMinValue ) ) ) + 0.5;
But there is another problem. It does not work on mobile. Do you have any advice please?