JSFiddle - React, Tailwind, and code Playground

HTML

<span  class="cosT">20.55</span>

JavaScript

let addedValue = parseFloat(document.getElementsByClassName("cosT")[0].textContent) + 10.90
/* console.log('Addition ->', addedValue.toFixed(2)) */

document.getElementsByClassName("cosT")[0].innerHTML = addedValue.toFixed(2);