<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
</head>
<body>
<label for="sum">Введите сумму: </label>
<input type="text" placeholder="0" id="sum" /><br />
<label for="sum">3%: </label>
<input type="text" placeholder="0" id="sum1" readonly="true" /><br />
<label for="sum">12%: </label>
<input type="text" placeholder="0" id="sum2" readonly="true" />
<script>
var sum = document.getElementById('sum'),
sum1 = document.getElementById('sum1'),
sum2 = document.getElementById('sum2');
sum.addEventListener('input', function() {
this.value = this.value.replace(/\D/g, '');
sum1.value = Math.round( this.value * 1.03 );
sum2.value = Math.round( this.value * 1.15 );
});
</script>
</body>
</html>