I'm trying to write the formula for the slider with calculated results