{"id":38,"date":"2024-04-05T04:39:52","date_gmt":"2024-04-05T04:39:52","guid":{"rendered":"https:\/\/robocalculator.com\/?p=38"},"modified":"2024-04-05T05:06:51","modified_gmt":"2024-04-05T05:06:51","slug":"hours-between-times-calculator","status":"publish","type":"post","link":"https:\/\/robocalculator.com\/calculator\/hours-between-times-calculator\/","title":{"rendered":"Hours Between Times Calculator: \u00a0Easily Track Time Duration"},"content":{"rendered":"\n

Use this easy-to-use hour between-times calculator<\/strong> to calculate the number of hours and minutes between two given dates. If you want to know how many hours I have worked on an app or spent watching TV, this hours calculator will be super helpful to you.<\/p>\n\n\n\n\n\n\n\t\n\t\n\tHours Calculator<\/title>\n\t<style>\n\t\t.inputBox {\n\t\t\twidth: 100%;\n\t\t\tborder: 2px solid black !important;\n\t\t\tmargin: 3px;\n\t\t\tpadding: 8px !important;\n\t\t\tpadding-left: 10px !important;\n\t\t\tborder-radius: 8px !important;\n\t\t\tfont-size: 18px;\n\t\t\tbackground: white !important;\n\t\t\tcursor: pointer;\n\t\t}\n\n\t\t.MainBox {\n\t\t\tborder: 2px solid black;\n\t\t\tborder-radius: 13px;\n\t\t\tpadding: 2%;\n\t\t}\n\n\t\t.mb-3 {\n\t\t\tmargin-bottom: 1rem !important;\n\t\t}\n\n\t\t.mt-3 {\n\t\t\tmargin-top: 1rem !important;\n\t\t}\n\n\t\t.mb-4 {\n\t\t\tmargin-bottom: 1.5rem !important;\n\t\t}\n\n\t\t.mb-2 {\n\t\t\tmargin-bottom: 0.5rem !important;\n\t\t}\n\n\t\t.mt-2 {\n\t\t\tmargin-top: 0.5rem !important;\n\t\t}\n\n\t\t.mt-4 {\n\t\t\tmargin-top: 1.5rem !important;\n\t\t}\n\n\t\t.btn {\n\t\t\tborder: 2px solid black;\n\t\t\tbackground-color: white;\n\t\t\tcolor: black;\n\t\t\tpadding: 10px 20px;\n\t\t\tfont-size: 20px;\n\t\t\tborder-radius: 8px;\n\t\t\twidth: 90%;\n\t\t\tcursor: pointer;\n\t\t}\n\n\t\t.btn-outline-secondary {\n\t\t\tborder-color: rgb(60, 64, 67);\n\t\t\tcolor: black;\n\t\t}\n\n\t\t.btn-outline-secondary:hover {\n\t\t\tbackground-color: rgb(60, 64, 67);\n\t\t\tcolor: white;\n\t\t}\n\n\t\t.btn-center {\n\t\t\ttext-align: center;\n\t\t}\n\n\t\t.DivHeadings {\n\t\t\tfont-size: 18px;\n\t\t\tmargin: 3px;\n\t\t\tpadding: 5px;\n\t\t\tfont-weight: 700;\n\t\t\tpadding-left: 2px;\n\t\t\twidth: 28%;\n\t\t\tdisplay: inline-block;\n\t\t\ttext-align: end;\n\t\t}\n\n\t\t.Fields {\n\t\t\twidth: 64%;\n\t\t\tdisplay: inline-block;\n\t\t\tfont-size: 20px;\n\t\t}\n\n\t\t.FieldBreak {\n\t\t\twidth: 31.8%;\n\t\t\tdisplay: inline-block;\n\t\t\tfont-size: 20px;\n\t\t}\n\n\t\t.inputBoxOfBreak {\n\t\t\tdisplay: inline-block;\n\t\t\twidth: 100%;\n\t\t\tborder: 2px solid rgb(60, 64, 67);\n\t\t\tmargin: 3px;\n\t\t\tpadding: 3px !important;\n\t\t\tpadding-left: 10px !important;\n\t\t\tborder-radius: 8px;\n\t\t\tfont-size: 18px;\n\t\t\tcolor: white;\n\t\t\ttext-align: center;\n\t\t\tbackground: rgb(60, 64, 67);\n\t\t}\n\n\t\t#ResultSection {\n\t\t\tbackground-color: rgb(60, 64, 67);\n\t\t\tcolor: white;\n\t\t\tborder: 2px solid rgb(60, 64, 67);\n\t\t\tborder-radius: 10px;\n\t\t\tpadding: 5px;\n\t\t}\n\n\t\t.ResultHeading {\n\t\t\tcolor: white;\n\t\t\ttext-align: center;\n\t\t\tfont-size: 28px;\n\t\t\tfont-weight: 700;\n\t\t}\n\n\t\t.ResultContent {\n\t\t\tfont-size: 20px;\n\t\t\tmargin: 3px;\n\t\t\tpadding: 5px;\n\t\t\tfont-weight: 700;\n\t\t\tpadding-left: 2px;\n\t\t\twidth: 50%;\n\t\t\tdisplay: inline-block;\n\t\t\ttext-align: right;\n\t\t}\n\n\t\t.FieldsResult {\n\t\t\tfont-size: 20px;\n\t\t\twidth: 45%;\n\t\t\tdisplay: inline-block;\n\t\t}\n\n\t\t.right {\n\t\t\tfloat: right;\n\t\t\tcursor: pointer;\n\t\t}\n\n\t\t.ResultValue {\n\t\t\tpadding-left: 5%;\n\t\t}\n\n\t\t#calculate svg {\n\t\t\tdisplay: inline;\n\t\t\theight: 25;\n\t\t\twidth: 25;\n\t\t\tposition: relative;\n\t\t\ttop: 4px;\n\t\t}\n\n\t\t.shareSection svg {\n position: relative;\n top: 3px;\n }\n\n .dropdown {\n position: relative;\n display: inline-block;\n }\n\n .dropdown-content {\n display: none;\n position: absolute;\n background-color: #f1f1f1;\n min-width: max-content;\n overflow: auto;\n box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);\n right: 0;\n z-index: 1;\n cursor: pointer;\n }\n\n .dropdown-content a {\n color: black;\n padding: 10px 14px;\n text-decoration: none;\n font-size: 18px;\n display: block;\n border-radius: 8px;\n }\n\n .dropdown a:hover {\n background-color: rgb(60, 64, 67) !important;\n color: white !important;\n }\n\n .show {\n display: block;\n }\n\n .shareSection {\n padding: 5px;\n }\n\n .dropdownbtn {\n width: 100%;\n }\n\n\t\t@media only screen and (max-width: 530px) {\n\t\t\t.MainBox {\n\t\t\t\tborder: none;\n\t\t\t\tpadding: 2%;\n\t\t\t}\n\n\t\t\t.DivHeadings {\n\t\t\t\twidth: 100%;\n\t\t\t\tdisplay: block;\n\t\t\t\ttext-align: start;\n\t\t\t\tfont-size: 19px;\n\t\t\t\tpadding: 0px;\n\t\t\t}\n\n\t\t\t.Fields {\n\t\t\t\twidth: 100%;\n\t\t\t\tdisplay: block;\n\t\t\t}\n\n\t\t\t.dropdown-content {\n\t\t\t\tright: 0;\n\t\t\t\tleft: 0;\n\t\t\t}\n\n\t\t\t.toggle-label {\n\t\t\t\twidth: 47%;\n\t\t\t}\n\n\t\t\t.btn {\n\t\t\t\twidth: 100%;\n\t\t\t}\n\n\t\t\t.ResultContent {\n\t\t\t\twidth: 100%;\n\t\t\t\ttext-align: center;\n\t\t\t}\n\n\t\t\t.FieldsResult {\n\t\t\t\twidth: 100%;\n\t\t\t\ttext-align: center;\n\t\t\t}\n\n\t\t\t.right {\n\t\t\t\tfloat: none;\n\t\t\t\tmargin-left: 6px;\n\t\t\t}\n\n\t\t\t.FieldBreak {\n\t\t\t\twidth: 49%;\n\t\t\t}\n\n\t\t}\n\t<\/style>\n<\/head>\n\n<body>\n\n\t<div class=\"MainBox\">\n\t\t<!-- input -->\n\t\t<div>\n\t\t\t<div class=\"DivHeadings\">\n\t\t\t\tStart Time\n\t\t\t<\/div>\n\n\t\t\t<div class=\"Fields\">\n\t\t\t\t<input type=\"time\" class=\"inputBox\" id=\"start_time\" required>\n\t\t\t<\/div>\n\t\t<\/div>\n\n\t\t<div>\n\t\t\t<div class=\"DivHeadings\">\n\t\t\t\tEnd Time\n\t\t\t<\/div>\n\n\t\t\t<div class=\"Fields\">\n\t\t\t\t<input type=\"time\" class=\"inputBox\" id=\"end_time\" required>\n\n\t\t\t<\/div>\n\t\t<\/div>\n\n\t\t<div>\n\t\t\t<div class=\"DivHeadings\">\n\t\t\t\tBreak Time\n\t\t\t<\/div>\n\n\t\t\t<div class=\"FieldBreak\">\n\t\t\t\t<input type=\"number\" class=\"inputBox\" id=\"break_time\" placeholder=\"0\">\n\t\t\t<\/div>\n\n\t\t\t<div class=\"FieldBreak\">\n\t\t\t\t<span class=\"inputBoxOfBreak\" id=\"basic-addon1\">minutes total<\/span>\n\t\t\t<\/div>\n\t\t<\/div>\n\n\t\t<div class=\"btn-center mt-3 mb-2\">\n\t\t\t<button id=\"calculate\" class=\"btn btn-outline-secondary\" onclick=\"Calculate()\">\n\t\t\t\tCalculate\n\t\t\t<\/button>\n\t\t<\/div>\n\n\t<\/div>\n\n\n\t<div class=\"mt-4 mb-2 MainBox\" id=\"ResultSection\" style=\"display: none;\">\n\n\t\t<div class=\"ResultHeading mt-2\">\n\t\t\tCalculation Results\n\t\t<\/div>\n\n\t\t<div>\n\t\t\t<div class=\"ResultContent mt-2\">\n\t\t\t\tTime in between hh:mm <span id=\"nbreak\">(minus break)<\/span>\n\t\t\t<\/div>\n\n\t\t\t<div class=\"FieldsResult\">\n\t\t\t\t<span id=\"time_in_between\" class=\"ResultValue\"><\/span>\n\n\t\t\t\t<span class=\"right\" id=\"copyIcontime_in_between\">\n\t\t\t\t\t<svg onclick=\"Copy('time_in_between', 'copyIcontime_in_between')\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"\n\t\t\t\t\t\twidth=\"28\" height=\"28\" fill=\"currentColor\" class=\"bi bi-copy\" viewBox=\"0 0 16 16\">\n\t\t\t\t\t\t<path fill-rule=\"evenodd\"\n\t\t\t\t\t\t\td=\"M4 2a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2zm2-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1zM2 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-1h1v1a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h1v1z\">\n\t\t\t\t\t\t<\/path>\n\t\t\t\t\t<\/svg>\n\t\t\t\t<\/span>\n\t\t\t<\/div>\n\n\t\t<\/div>\n\n\t\t<div>\n\t\t\t<div class=\"ResultContent mt-2\">\n\t\t\t\tTime in decimal hours\n\t\t\t<\/div>\n\n\t\t\t<div class=\"FieldsResult\">\n\t\t\t\t<span id=\"time_in_decimal_hours\" class=\"ResultValue\"><\/span>\n\n\t\t\t\t<span class=\"right\" id=\"copyIcontime_in_decimal_hours\">\n\t\t\t\t\t<svg onclick=\"Copy('time_in_decimal_hours', 'copyIcontime_in_decimal_hours')\"\n\t\t\t\t\t\txmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"28\" height=\"28\" fill=\"currentColor\" class=\"bi bi-copy\"\n\t\t\t\t\t\tviewBox=\"0 0 16 16\">\n\t\t\t\t\t\t<path fill-rule=\"evenodd\"\n\t\t\t\t\t\t\td=\"M4 2a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2zm2-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1zM2 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-1h1v1a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h1v1z\">\n\t\t\t\t\t\t<\/path>\n\t\t\t\t\t<\/svg>\n\t\t\t\t<\/span>\n\t\t\t<\/div>\n\n\t\t<\/div>\n\n\n\t\t<div>\n\t\t\t<div class=\"ResultContent mt-2\">\n\t\t\t\tTime in minutes\n\t\t\t<\/div>\n\n\t\t\t<div class=\"FieldsResult\">\n\t\t\t\t<span id=\"time_in_minutes\" class=\"ResultValue\"><\/span>\n\n\t\t\t\t<span class=\"right\" id=\"copyIcontime_in_minutes\">\n\t\t\t\t\t<svg onclick=\"Copy('time_in_minutes', 'copyIcontime_in_minutes')\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"\n\t\t\t\t\t\twidth=\"28\" height=\"28\" fill=\"currentColor\" class=\"bi bi-copy\" viewBox=\"0 0 16 16\">\n\t\t\t\t\t\t<path fill-rule=\"evenodd\"\n\t\t\t\t\t\t\td=\"M4 2a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2zm2-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1zM2 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-1h1v1a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h1v1z\">\n\t\t\t\t\t\t<\/path>\n\t\t\t\t\t<\/svg>\n\t\t\t\t<\/span>\n\t\t\t<\/div>\n\n\t\t<\/div>\n\n\n\t\t<div>\n\t\t\t<div class=\"ResultContent mt-2\">\n\t\t\t\tFull hours in between\n\t\t\t<\/div>\n\n\t\t\t<div class=\"FieldsResult\">\n\t\t\t\t<span id=\"full_hours_in_between\" class=\"ResultValue\"><\/span>\n\n\t\t\t\t<span class=\"right\" id=\"copyIconfull_hours_in_between\">\n\t\t\t\t\t<svg onclick=\"Copy('full_hours_in_between', 'copyIconfull_hours_in_between')\"\n\t\t\t\t\t\txmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"28\" height=\"28\" fill=\"currentColor\" class=\"bi bi-copy\"\n\t\t\t\t\t\tviewBox=\"0 0 16 16\">\n\t\t\t\t\t\t<path fill-rule=\"evenodd\"\n\t\t\t\t\t\t\td=\"M4 2a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2zm2-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1zM2 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-1h1v1a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h1v1z\">\n\t\t\t\t\t\t<\/path>\n\t\t\t\t\t<\/svg>\n\t\t\t\t<\/span>\n\t\t\t<\/div>\n\n\t\t<\/div>\n\n\n\t<\/div>\n\n\t<div class=\"shareSection mb-4\">\n\n <span>\n <span class=\"dropdown\">\n <button class=\"btn btn-outline-secondary dropdownbtn\" type=\"button\" onclick=\"myFunction()\">\n <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20\" height=\"20\" fill=\"currentColor\"\n class=\"bi bi-share\" viewBox=\"0 0 16 16\">\n <path\n d=\"M13.5 1a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3M11 2.5a2.5 2.5 0 1 1 .603 1.628l-6.718 3.12a2.499 2.499 0 0 1 0 1.504l6.718 3.12a2.5 2.5 0 1 1-.488.876l-6.718-3.12a2.5 2.5 0 1 1 0-3.256l6.718-3.12A2.5 2.5 0 0 1 11 2.5m-8.5 4a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3m11 5.5a1.5 1.5 0 1 0 0 3 1.5 1.5 0 0 0 0-3\" \/>\n <\/svg> Share\n <\/button>\n\n <div id=\"myDropdown\" class=\"dropdown-content\">\n <a onclick=\"ShareByFb()\">Share on Facebook<\/a>\n <a onclick=\"ShareByTwitter()\">Share on Twitter<\/a>\n <a onclick=\"ShareByEmail()\">Share via Email<\/a>\n <\/div>\n <\/span>\n <\/span>\n\n <\/div>\n\n\t<script src=\"https:\/\/code.jquery.com\/jquery-3.6.3.min.js\"\n\t\tintegrity=\"sha256-pvPw+upLPUjgMXY0G+8O0xUf+\/Im1MZjXxxgOcBQBXU=\" crossorigin=\"anonymous\"><\/script>\n\t<script src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/moment.js\/2.30.1\/moment.min.js\"><\/script>\n\t<\/script>\n\t<script>\n\t\t$(document).ready(function () {\n\t\t\t$(\"#nbreak\").hide();\n\t\t\t$(\"#break_time\").on(\"input\", function () {\n\t\t\t\tif ($(this).val() != \"\") {\n\t\t\t\t\t$(\"#nbreak\").show();\n\t\t\t\t} else {\n\t\t\t\t\t$(\"#nbreak\").hide();\n\t\t\t\t}\n\t\t\t});\n\t\t});\n\n\t\tfunction Calculate() {\n\t\t\tvar start_time = $('#start_time').val();\n\t\t\tvar end_time = $('#end_time').val();\n\t\t\tvar break_time = $('#break_time').val();\n\n\t\t\tif (!start_time || !end_time) {\n\t\t\t\treturn\n\t\t\t}\n\t\t\tmoment().format();\n\n\t\t\tvar time_in_between = moment.utc(moment(end_time, \"HH:mm\").diff(moment(start_time, \"HH:mm\")) - (break_time * 60 * 1000)).format(\"HH:mm\");\n\t\t\tvar minutes = moment.utc(moment(end_time, \"HH:mm\").diff(moment(start_time, \"HH:mm\")) - (break_time * 60 * 1000)).format(\"m\");\n\t\t\tvar hours = moment.utc(moment(end_time, \"HH:mm\").diff(moment(start_time, \"HH:mm\")) - (break_time * 60 * 1000)).format(\"H\");\n\t\t\tvar seconds = moment.utc(moment(end_time, \"HH:mm\").diff(moment(start_time, \"HH:mm\")) - (break_time * 60 * 1000)).format(\"s\");\n\t\t\tvar time = ((parseFloat(minutes) \/ 60).toFixed(2));\n\t\t\tvar time_in_decimal_hours = (parseFloat(hours) + parseFloat(time));\n\t\t\tvar time_in_minutes = (parseFloat(hours) * 60) + parseFloat(minutes);\n\t\t\t\/\/ var time_in_decimal_hours = moment.duration(moment(end_time,\"hh:mm\").diff(moment(start_time,\"hh:mm\"))).asHours().toFixed(2);\n\t\t\t\/\/ var time_in_minutes = moment.duration(moment(end_time,\"hh:mm\").diff(moment(start_time,\"hh:mm\")) - (break_time * 60 * 1000)).asMinutes();\n\t\t\t\/\/ var full_hours_in_between = Math.floor(moment.duration(moment(end_time,\"hh:mm\").diff(moment(start_time,\"hh:mm\")) - (break_time * 60 * 1000)).asHours());\n\t\t\tvar full_hours_in_between = hours;\n\t\t\t$('#time_in_between').html((time_in_between) + \" \" + '(' + hours + \" \" + \"hours\" + \" \" + minutes + \" \" + \"minutes\" + ')');\n\t\t\t$('#time_in_decimal_hours').html(Math.abs(time_in_decimal_hours) + \" h\");\n\t\t\t$('#time_in_minutes').html(Math.abs(time_in_minutes));\n\t\t\t$('#full_hours_in_between').html(Math.abs(full_hours_in_between));\n\t\t\t$('#ResultSection').show();\n\t\t}\n\n\t\tasync function Copy(DaysCount, copyIconDaysCount) {\n\t\t\tlet DaysCountNumber = document.getElementById(DaysCount).innerHTML\n\n\t\t\tlet copied = `<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"28\" height=\"28\" fill=\"currentColor\" class=\"bi bi-clipboard-check\" viewBox=\"0 0 16 16\">\n <path fill-rule=\"evenodd\" d=\"M10.854 7.146a.5.5 0 0 1 0 .708l-3 3a.5.5 0 0 1-.708 0l-1.5-1.5a.5.5 0 1 1 .708-.708L7.5 9.793l2.646-2.647a.5.5 0 0 1 .708 0z\"\/>\n <path d=\"M4 1.5H3a2 2 0 0 0-2 2V14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V3.5a2 2 0 0 0-2-2h-1v1h1a1 1 0 0 1 1 1V14a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V3.5a1 1 0 0 1 1-1h1z\"\/>\n <path d=\"M9.5 1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-1a.5.5 0 0 1 .5-.5zm-3-1A1.5 1.5 0 0 0 5 1.5v1A1.5 1.5 0 0 0 6.5 4h3A1.5 1.5 0 0 0 11 2.5v-1A1.5 1.5 0 0 0 9.5 0z\"\/>\n <\/svg>`\n\n\t\t\tawait navigator.clipboard.writeText(DaysCountNumber)\n\n\t\t\tdocument.getElementById(copyIconDaysCount).innerHTML = copied\n\t\t\tsetTimeout(() => {\n\t\t\t\tdocument.getElementById(copyIconDaysCount).innerHTML = `\n <svg onclick=\"Copy('${DaysCount}', '${copyIconDaysCount}')\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"\n width=\"28\" height=\"28\" fill=\"currentColor\" class=\"bi bi-copy\" viewBox=\"0 0 16 16\">\n <path fill-rule=\"evenodd\"\n d=\"M4 2a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2zm2-1a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1zM2 5a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1v-1h1v1a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h1v1z\">\n <\/path>\n <\/svg>\n `\n\t\t\t}, 500);\n\n\n\t\t}\n\n\t\tfunction ShareByFb() {\n window.location = `https:\/\/www.facebook.com\/sharer.php?${location.href}`\n }\n\n function ShareByTwitter() {\n window.location = `https:\/\/twitter.com\/intent\/tweet?url=${location.href}`\n }\n\n function ShareByEmail() {\n window.location = `mailto:?subject=I wanted you to see this site &body=Check out this site ${location.href}`\n }\n\n function myFunction() {\n document.getElementById(\"myDropdown\").classList.toggle(\"show\");\n }\n\n window.onclick = function (event) {\n if (!event.target.matches('.dropdownbtn')) {\n var dropdowns = document.getElementsByClassName(\"dropdown-content\");\n var i;\n for (i = 0; i < dropdowns.length; i++) {\n var openDropdown = dropdowns[i];\n if (openDropdown.classList.contains('show')) {\n openDropdown.classList.remove('show');\n }\n }\n }\n }\n\t<\/script>\n<\/body>\n\n<\/html>\n\n\n\n<div class=\"wp-block-buttons is-content-justification-center is-layout-flex wp-container-core-buttons-is-layout-1 wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/robocalculator.com\/calculator\/date-time-duration-calculator\/\">Date & Time Calculator<\/a><\/div>\n\n\n\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/robocalculator.com\/calculator\/age-calculator\/\">Age Calculator<\/a><\/div>\n\n\n\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/robocalculator.com\/calculator\/day-counter\/\">Day Counter Calculator<\/a><\/div>\n<\/div>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_65 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title \" >Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 eztoc-toggle-hide-by-default' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/robocalculator.com\/calculator\/hours-between-times-calculator\/#How_To_Calculate_Time_Between_Two_Different_Times\" title=\"How To Calculate Time Between Two Different Times?\">How To Calculate Time Between Two Different Times?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/robocalculator.com\/calculator\/hours-between-times-calculator\/#Calculating_Your_Active_Workday\" title=\"Calculating Your Active Workday\">Calculating Your Active Workday<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/robocalculator.com\/calculator\/hours-between-times-calculator\/#Duration_of_Work_Excluding_Breaks\" title=\"Duration of Work Excluding Breaks\">Duration of Work Excluding Breaks<\/a><ul class='ez-toc-list-level-4' ><li class='ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/robocalculator.com\/calculator\/hours-between-times-calculator\/#References\" title=\"References:\">References:<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-4'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/robocalculator.com\/calculator\/hours-between-times-calculator\/#Link_to_this_Page\" title=\"Link to this Page\">Link to this Page<\/a><\/li><\/ul><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_To_Calculate_Time_Between_Two_Different_Times\"><\/span>How To Calculate Time Between Two Different Times?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>When you're looking to determine the <strong>duration between two points<\/strong> in time, it's helpful to express this time span in decimal hours. This is especially useful for tasks like completing timesheets or planning your day. So, how do you go about converting standard time into decimals?<\/p>\n\n\n\n<p>To begin, you\u2019ll need the <strong>start and end times.<\/strong> Once you have these, you can determine the total hours and minutes. If the starting time is later in the day than the ending time, consider the ending time as the next day. For instance, going from 5 PM today to 9 AM the next day results in 16 hours.<\/p>\n\n\n\n<p>If you\u2019re calculating work hours within the same day, imagine starting at 10 AM and ending at 6:00 PM. Input these times into a time duration calculator or compute them manually to find that you've worked for 8 hours. <\/p>\n\n\n\n<p><strong>Here's a quick guide to converting minutes to decimals:<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><thead><tr><th>Minutes<\/th><th>Decimal Hours<\/th><\/tr><\/thead><tbody><tr><td>15<\/td><td>0.25<\/td><\/tr><tr><td>30<\/td><td>0.50<\/td><\/tr><tr><td>45<\/td><td>0.75<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>Remember, to convert minutes to a decimal, you divide the minutes by 60. So, 15 minutes divided by 60 equals 0.25. Add this to the full hour amount, and there you have it\u2014your time in decimal hours.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Calculating_Your_Active_Workday\"><\/span>Calculating Your Active Workday<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Duration_of_Work_Excluding_Breaks\"><\/span>Duration of Work Excluding Breaks<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>If you clock in at 9 AM and out by 5 PM, you're likely working a full eight hours. But remember, this doesn't factor in the time you step away for lunch or any other breaks.<\/p>\n\n\n\n<p>Consider your children's time at school, for instance. Dropping them off at 7 AM and fetching them at 3 PM, they're engaging in school activities for a total of eight hours.<\/p>\n\n\n\n<p>Let\u2019s look at some other common time spans during the day, excluding break periods:<\/p>\n\n\n\n<ul>\n<li><strong>9 AM to 5 PM:<\/strong> 8 hours<\/li>\n\n\n\n<li><strong>7 AM to 5 PM:<\/strong> 10 hours<\/li>\n\n\n\n<li><strong>8 AM to 4 PM:<\/strong> 8 hours<\/li>\n\n\n\n<li><strong>8 AM to 8 PM:<\/strong> 12 hours<\/li>\n\n\n\n<li><strong>8 AM to 6 PM:<\/strong> 10 hours<\/li>\n\n\n\n<li><strong>9 AM to 5:30 PM:<\/strong> 8 hours and 30 minutes<\/li>\n\n\n\n<li><strong>7:30 AM to 4:30 PM:<\/strong> 9 hours<\/li>\n<\/ul>\n\n\n\n<p>Should you want to determine the precise amount of time you spend working, subtract your break times from the total hours. For example, working from 7:30 AM to 4:30 PM with a half-hour break leads to an 8.5-hour workday\u20149 hours minus your 30-minute break.<\/p>\n\n\n\n<p>For those with variable break times or multiple pauses throughout the shift, sum up the total break time in minutes and subtract it from your working hours to get the actual duration of your job activities.<\/p>\n\n\n\n<p>Moreover, this method can be applied to calculating periods of physical exercise, such as an hour of intense training followed by a 15-minute break and then another round of activity\u2014for a total of two hours with a quarter-hour break in between. <\/p>\n\n\n\n<p>For more intricate scheduling, consider using a detailed timesheet or work hours calculator that allows you to add break durations.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"References\"><\/span>References:<span class=\"ez-toc-section-end\"><\/span><\/h4>\n\n\n\n<p><a href=\"https:\/\/www.epochconverter.com\/date-difference\" target=\"_blank\" rel=\"noopener\">https:\/\/www.epochconverter.com\/date-difference<\/a><\/p>\n\n\n\n<h4><span class=\"ez-toc-section\" id=\"Link_to_this_Page\"><\/span>Link to this Page<span class=\"ez-toc-section-end\"><\/span><\/h4>\r\n\r\nIf you'd like to cite the online calculator on the page, you can use the following citation:\r\nKeith Woods,\u00a0\"<i>Hours Between Times Calculator: \u00a0Easily Track Time Duration<\/i>\", Available at: <a href=\"https:\/\/robocalculator.com\/wp-json\/wp\/v2\/posts\/38\">https:\/\/robocalculator.com\/wp-json\/wp\/v2\/posts\/38<\/a>\u00a0URL, Accessed Date: [ May 8, 2024 ]\n","protected":false},"excerpt":{"rendered":"<p>Use this easy-to-use hour between-times calculator to calculate the number of hours and minutes between two given dates. If you want to know how many hours I have worked on an app or spent watching TV, this hours calculator will be super helpful to you. Hours Calculator Start Time End Time Break Time minutes total … <a title=\"Hours Between Times Calculator: \u00a0Easily Track Time Duration\" class=\"read-more\" href=\"https:\/\/robocalculator.com\/calculator\/hours-between-times-calculator\/\" aria-label=\"Read more about Hours Between Times Calculator: \u00a0Easily Track Time Duration\">Read more<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"_links":{"self":[{"href":"https:\/\/robocalculator.com\/wp-json\/wp\/v2\/posts\/38"}],"collection":[{"href":"https:\/\/robocalculator.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/robocalculator.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/robocalculator.com\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/robocalculator.com\/wp-json\/wp\/v2\/comments?post=38"}],"version-history":[{"count":5,"href":"https:\/\/robocalculator.com\/wp-json\/wp\/v2\/posts\/38\/revisions"}],"predecessor-version":[{"id":82,"href":"https:\/\/robocalculator.com\/wp-json\/wp\/v2\/posts\/38\/revisions\/82"}],"wp:attachment":[{"href":"https:\/\/robocalculator.com\/wp-json\/wp\/v2\/media?parent=38"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/robocalculator.com\/wp-json\/wp\/v2\/categories?post=38"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/robocalculator.com\/wp-json\/wp\/v2\/tags?post=38"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}