Hi,
Looking through the online help, and browing the community, I suspect the answer is "no", but is it possible to add a simple UDF to a workflow that all users of the workflow would have access to?
This is akin to adding a simple VBA function in an Excel spreadsheet.
The online help suggests that it is possible to build something in XML, but would have to be "saved" to each users local machine individually.
My company structure uses remote VDI machines so staff don't have access to a local "C:\" drive to carry this our.
In my workflow, I'm having to adjust the persons retirement dates depending whether the birthday was a leap year, and/or the retirement date(s) is also a leap year and depending on their gender.
I've worked around the problem by adding 2 additional columns that give a boolean response to the "is the input date a leap year", and then referencing the new columns before deselecting them in the next tool.

As I've had to use the same core code, albeit referending different columns, to generate 2 new columns, this seems a bit of unnecessary duplication.
Similar comments to the "if male add 65 years to a date, or 60 if female". If this were in VBA I'd probably add this simple code into another UDF to tidy things up!
Thanks in advance,