340* Error was: LEN(D)-1 should've been: (LEN(D))-1