In the formula workshop you'll see a grouping titled Report Custom Functions. Right click - New.
If you've already written a formula that does the same thing, use the Extractor to help convert it into the function.
I only have XI installed, but as I recall CR10 works the same way.