Debugging formula and calculations
Using complex calculations can be challenging. There are two options for debugging.
For debugging in the ‘Quick test’ mode, the web-browser ‘Inspect’ option in Web-developer tools will show the calculations and results when using Test.
For Online testing, use %%DEBUG[ … ] in place of %%[ … ] as a text substitution to generate the formula and how it is interpreted for debugging. Obviously this will need to be removed before the survey goes live.