Substring formula .. bug?

I think substring formula getting error today?