Tie max and min value of range input to formula

They should be there