Andrey07,
let num1 = document.getElementById('num1');
let num2 = document.getElementById('num2');
let out = document.getElementById('total');
function plust(){
out.innerHTML = +num1.value + +num2.value;
}
function minus(){
out.innerHTML = num1.value - num2.value;
}