Multiple Values on Checkbox?

I am currently trying to make a “”””calculator”””” for an RP Server, anyways, I need to calculate a sentence and a fine using values on checkboxes.
I already did the sentence, and I would like to make the fine similar to it, but I know I can’t use more than 1 value on each input. What is the best way to get it done?

Sentence Code >

let checkedValue = 0;
let inputElements = document.getElementsByClassName('check');
for(let i=0; i < inputElements.length; ++i){
    const element = inputElements[i]

    if(element.checked){
      checkedValue = checkedValue + parseInt(element.value)
    }
}