It is also calculating the negative value and negative percent so it can be fix by set min and max in input