This can be done by updating the row data via JS.
When “attack” is clicked, use $w to fetch the data from your input text. use JS to calculate according to the right formula. now update the table’s content.
read about updating table row data here: Table - Velo API Reference - Wix.com