Zeit ausrechnen

Ich will in ein PDF Formular die Zeit von - bis ausrechnen lassen und in Feld total ausgeben. Beispiel: 11:10 - 11:25 Uhr = 0.15 11:10 - 12:15 Uhr = 1.05 Die Zeit von - bis wird schon per klick ins jeweilige Feld mit folgenden Code eingetragen & auf 5er gerundet
jetzt hätte ich gerne das Ergebnis von - bis Uhrzeit in ein neues Feld (Total) Könnte mir da jemand helfen ?

Der hier verwendete Code

<td> <input type="time" class="dataInput" id="sMon" onchange="SumHours();" /> </td> <td> <input type="time" class="dataInputt" id="fMon" onchange="SumHours();"/> </td> out: <input type="text" id="out"> <script> function SumHours() { var smon = document.getElementById('sMon').value ; var fmon = document.getElementById('fMon').value ; var diff = 0 ; if (smon && fmon) { smon = ConvertToSeconds(smon); fmon = ConvertToSeconds(fmon); diff = Math.abs( fmon - smon ) ; document.getElementById('out').value=secondsTohhmmss(diff); } function ConvertToSeconds(time) { var splitTime = time.split(":"); return splitTime[0] * 3600 + splitTime[1] * 60; } function secondsTohhmmss(secs) { var hours = parseInt(secs / 3600); var seconds = parseInt(secs % 3600); var minutes = parseInt(seconds / 60) ; if(minutes<10){ minutes='0'+minutes; } return hours + ":" + minutes; } } </script>