Title: memotech's Replies | WordPress.org

---

# memotech

  [  ](https://wordpress.org/support/users/memotech/)

 *   [Profile](https://wordpress.org/support/users/memotech/)
 *   [Topics Started](https://wordpress.org/support/users/memotech/topics/)
 *   [Replies Created](https://wordpress.org/support/users/memotech/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/memotech/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/memotech/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/memotech/engagements/)
 *   [Favorites](https://wordpress.org/support/users/memotech/favorites/)

 Search replies:

## Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Calculated Fields Form] Calculate Difference Between Two times (HH:mm)](https://wordpress.org/support/topic/calculate-difference-between-two-times-hhmm/)
 *  Thread Starter [memotech](https://wordpress.org/support/users/memotech/)
 * (@memotech)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/calculate-difference-between-two-times-hhmm/#post-17004715)
 * Sorry, we misunderstood, 
   The function of calculating the difference between 
   the 2 dates works very well. Now I would like to sum two time differences. See
   photos and explanations above. I used :
 *     ```wp-block-code
       DATETIMESUM(fieldname1,'h:i',TIMETODECIMAL(fieldname13,'h:i','i'), 'i')
       ```
   
 * But it does not work. 
   the fieldname1 and fieldname13 are the results of the 
   formula you sent me
 * fieldname1 :
 *     ```wp-block-code
       (function(){var o = DATEDIFF( fieldname4, fieldname3, 'hh:ii', 'h');
       return CONCATENATE(o['hours'], ':', o['minutes']);
       })()
       ```
   
 * fieldname3 :
 *     ```wp-block-code
       (function(){
       var o = DATEDIFF( fieldname12, fieldname11, 'hh:ii', 'h');
       return CONCATENATE(o['hours'], ':', o['minutes']);
       })()
       ```
   
 * fieldname15 :
 *     ```wp-block-code
       DATETIMESUM(fieldname1,'h:i',TIMETODECIMAL(fieldname13,'h:i','i'), 'i')
       ```
   
 * is that more understandable?
 * thanks
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Calculated Fields Form] Calculate Difference Between Two times (HH:mm)](https://wordpress.org/support/topic/calculate-difference-between-two-times-hhmm/)
 *  Thread Starter [memotech](https://wordpress.org/support/users/memotech/)
 * (@memotech)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/calculate-difference-between-two-times-hhmm/#post-17004592)
 * Hello again,
 * To continue in the same project, I would like to sum 2 times differences
 * Exemple : 
   – Morning Start Time, Morning Finish Time, the difference– Afternoon
   Start Time, Afternoon Finish Time, the difference– and the Sum of the 2 differences(
   see the photo)the difficulty is that I can’t do any operation with the results
   calculated previously, they are concatenated values
 * ![](https://i0.wp.com/i.goopics.net/nptmuu.png?ssl=1)
 * Thank you for your support.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Calculated Fields Form] Calculate Difference Between Two times (HH:mm)](https://wordpress.org/support/topic/calculate-difference-between-two-times-hhmm/)
 *  Thread Starter [memotech](https://wordpress.org/support/users/memotech/)
 * (@memotech)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/calculate-difference-between-two-times-hhmm/#post-17002995)
 * ok thanks a lot
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Calculated Fields Form] Calculate Difference Between Two times (HH:mm)](https://wordpress.org/support/topic/calculate-difference-between-two-times-hhmm/)
 *  Thread Starter [memotech](https://wordpress.org/support/users/memotech/)
 * (@memotech)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/calculate-difference-between-two-times-hhmm/#post-17002237)
 * thank you very much,its working
 * Is it possible to format the result like 00:00 (with the zero and not 0:0)
 * exemple :
   Start time 03:43Finish time 05:49Actual result 2:6 More nice like 02:
   06thanks

Viewing 4 replies - 1 through 4 (of 4 total)