Add one more case for calculating needle length