Input elements. Do not use text elements in a calculation, only as a presentation of a final result.
You can use hidden inputs for interim calculations.
If you use repeating groups, you are going to run into challenges if you need to do calculations and/or save back to the database.
Certain calculations will need to be written creatively or use interim calculations in hidden inputs, as Bubble doesn’t recognize order of operations.