I have 3 input
the first receives start time the second hour of exit and the third the subtraction between them.
function calcular(){
var segent = parseInt(document.getElementById('segent').value, 10);
var segsai = parseInt(document.getElementById('segsai').value, 10);
document.getElementById('resultseg').value = segent - segsai;
}
I need to calculate input-output, but with this code it returns odd values like -2, 0, -8 ...
Thank you!