slider input calculate