how can i calculate this numbers, i need that the result of first column adds (400 + 700) in one field(counter-one) and the second column (300 + 800) in other(counter-two). The result
<tr>
<td><span class="cost">400</span> грн.</td>
<td><span class="cost">300</span> грн./месяц</td>
<td>
<label class="switch">
<input type="checkbox" id="cost-one">
<div class="slider round"></div>
</label>
</td>
</tr>
<tr>
<td><span class="cost">700</span> грн.</td>
<td><span class="cost">800</span> грн./месяц</td>
<td>
<label class="switch">
<input type="checkbox" id="cost-two>
<div class="slider round"></div>
</label>
</td>
</tr>
html:
<div class="counter-wrapper">
<div class="install">
<p class="counter-head">Стоимость с установкой</p>
<p class="counter-one">0 <span class="currency">грн.</span></p>
</div>
<div class="monitoring">
<p class="counter-head">Стоимость мониторинга</p>
<p class="counter-two">0 <span class="currency">грн./месяц</span></p>
</div>
</div>