Length of a string with ui-only formula field?

Is there a good way to find the length of a string witha ui-only field? Or do I have to use javascript?