JSFiddle - React, Tailwind, and code Playground

HTML

<input/><span></span>

JavaScript

$("input").on("change keypress keydown ",function(){
    $(this).next().text($(this).val()*(1-.05)); // минус 5%
});

$("input").val(100).change();