JSFiddle - React, Tailwind, and code Playground
by Sascha
HTML
<input type="number" name="test1" id="RoundInput1">
<input type="number" name="test2" id="RoundInput2">
<button onclick="GetTheResults()">Try it</button>
<p id="demo">Click the button to change the text in this paragraph.</p>
JavaScript
function GetTheResults() {
x = parseInt(document.getElementsByName("test1")[0].value);
z = parseInt(document.getElementsByName("test2")[0].value);
var Savings = x + z;
document.getElementById("demo").innerHTML = Savings;
}