Len formula to validate input data