Calculate result on the value passed not the length of the input