JavaScript: How to sum the values greater than 16 in a list of editable numbers

I’m a new at JavaScript and I’m trying to do the following:

I’m making a fillable .pdf file. The user enters numbers in 7 different fields and gets an output in an 8th field. I want to take the sum of the values greater than 16.

For example: The user enters the following numbers in each field (16, 16, 16, 16, 16, 16, 16). The program sees that no value is above 16, so the output appears in an 8th field as 0.

Now the user enters (17, 17, 16, 16, 16, 16, 16), so the output is 2.

I’m not sure if this requires an array or not? Any thoughts? Thank you in advance.