Add up several text boxes

I would like to know the best way to add up the sum of these 24 text boxes so if any value chages it updates the total

Are these static text inputs or are they in a repeat?

individual inputs

Well you know you can do calculations with input values, right?

<p>Total: {{text1.value.toNumber() + text2.value.toNumber() + text3.value.toNumber()}} </p>

Oh thank you. I think I was missing the tonumber part. I did not need

Total: