JSFiddle - React, Tailwind, and code Playground
HTML
<script class="jsbin" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
Charge from the house: 1,00€ + 1% full price<br /><br />
Price: <input id='precoInserido' type="text" name="preco" /><br />
Comission Affiliate: <input id='comission' type="text" name="comission" /><br />
Your product costs € <span id='precoVer'>??</span>. You receive from each sale € <span id='recieve'></span> and for each affiliate € <span id="affiliate"></span> .
JavaScript
jQuery(function($) {
$('#precoInserido').bind('keyup ', function() {
var value = $('#precoInserido').val();
$('#precoVer').html(value);
$('#recieve').html(((value * 0.99) - 1).toFixed(2));
});
$('#comission').bind('keyup', function() {
var value = $('#precoInserido').val();
var affil = $('#comission').val();
$('#affiliate').html((value - affil).toFixed(2));
});
});