Metric visual for number occurrences of a field and apply arithmetic

Yes...the link that you provided didn't help.

Ok, I discovered the problem. Your syntax was wrong. You can't use a String in a Scripted Field, only numbers! I found this link that explains it:

It's not simple to set up but the steps are there that explain how to do maths on a metric field.

Many thanks.