0
I have 3 input
the first receives start time the second departure time and the third 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;
}
need to calculate input - output, but with this code it returns strange values like -2, 0, -8...
Thank you!