JSFiddle - React, Tailwind, and code Playground
HTML
<h2>Input</h2>
<input type="text" id="in-value1" placeholder="number here.">
<button>Calculate</button>
<h2>Output</h2>
<p id="in-result2"></p>
JavaScript
var button = document.querySelector('button');
button.onclick = function(){
var userValue = document.getElementById('in-value1').value;
var output = document.getElementById('in-result2');
//Your new formula.
output.innerHTML = userValue * 3 / 4;
}