Using g_form.setValue() on a Duration field does not work correctly.Description<!-- div.margin { padding: 10px 40px 40px 30px; } table.tocTable { border: 1px solid; border-color: #e0e0e0; background-color: #fff; } .title { color: #d1232b; font-weight: normal; font-size: 28px; } h1 { color: #d1232b; font-weight: normal; font-size: 21px; margin-bottom: 5px; border-bottom-width: 2px; border-bottom-style: solid; border-bottom-color: #cccccc; } h2 { color: #646464; font-weight: bold; font-size: 18px; } h3 { color: #000000; font-weight: bold; font-size: 16px; } h4 { color: #666666; font-weight: bold; font-size: 15px; } h5 { color: #000000; font-weight: bold; font-size: 13px; } h6 { color: #000000; font-weight: bold; font-size:14px; } ul, ol { margin-left: 0; list-style-position: outside; } --> Symptoms When the duration field is calculated from date type fields using g_form.setValue() in a client script, the value is not saved on saving the form. Release All Cause The probable cause of the issue is the existing problem - PRB1274011. According to the problem, using g_form.setValue() on a Duration field does not work correctly. However, after considering the priority and severity of the problem, it is closed as won't fix. Resolution In order to resolve, please use Before Update business rule that uses "gs.dateDiff", and this will work as a workaround. Refer the below link for a sample script. https://developer.servicenow.com/app.do#!/api_doc?v=madrid&id=r_GS-dateDiff_S_S_B