# Calculating Service Delays Using the 'Duration' Field in Proposals

**URL:** <https://www.dolibarr.org/forum/t/calculating-service-delays-using-the-duration-field-in-proposals/29805>\
**Category:** Developing for Dolibarr\
**Tags:** Help\
**Created:** [January 6, 2025, 2:32pm UTC](https://www.dolibarr.org/forum/t/calculating-service-delays-using-the-duration-field-in-proposals/29805 "2025-01-06T14:32:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tirafy](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/t/5daacb/32.png) [@tirafy](https://www.dolibarr.org/forum/u/tirafy)\
**Post date:** [January 6, 2025, 2:32pm UTC](https://www.dolibarr.org/forum/t/calculating-service-delays-using-the-duration-field-in-proposals/29805/1 "2025-01-06T14:32:05Z")

</div>

Hello,  
I created an additional field in the proposals (called “Duration”)  
I want to calculate the delay for an automatic service

 ![image](https://www.dolibarr.org/forum/uploads/dolibarrorg/original/2X/6/646cdd1156c03c4bc878bbe055c5e5b7255f7a77.png)  
Duration = time end service - time start service  
to calculate Total HT = P.U H \* Qty \* Duration
