Hey! I've created a simple example, but it should work for more complicated math. You just need to return an Array from the JS Transformer and then we can access each specific row's information with {{ transformer1.value[i] }}.
This post needs a bit of an updated solution. In Joe's previous solution before, he is using a 'Table Transformer' which belongs to the v1 table which is now depreciated.
You currently cannot set the returned data from a JS query or a Transformer to be the 'Source' of a custom column added to a table. Also the 'Calculation' input field is not a feature of the v2 table.
Instead, you can either save the table's data to a variable, and then manipulate that array or objects with Javascript to add in another column with a value that is the result of any operations or modifications you want to make.
Or you can do any logic transformations from the 'Value' input field of a newly created column that has been manually added.