You can run the formula from LotusScript, but not vice versa if you are not using an agent because Stan has slipped away.
After several tedious years of developers, I usually consider writing lotusScript for most of my work, exceptions are only if I can write the formula in less than 10 lines and is unlikely to interact with other documents or update them.
As soon as you need to interrogate many fields in other documents or update them, write them in a script. The special function that you indicated in your question will also work as a formula, but if your desire is to be modular in a script, you should consider using a script in these situations exclusively instead of a formula. I would say that the "Formula" just reduces the time it takes to complete basic operations.
source share