Here's how I would go about converting the expression into a VBA function in a standard module named modBusinessCalcs. You can test this in the immediate window by using:
? YourFunctionName(value1, value2, value3,...)
You should also understand how to add a breakpoint to allow your to step...