2 Replies Latest reply: Feb 23, 2017 4:02 AM by Anat Dagan RSS

    How to convert duration format to decimal format so that calculation result makes sense?

    Anat Dagan

      I want to multiply the monthly hours and the cost per hour below to get the total monthly cost.


      The current calculation result does not make sense as you can see....the total cost column does not equal (cost per hour) *(monthly hours).


      The monthly hours are in a duration timestamp format. i am suspecting that might be the reason. How do I convert them into decimal format ? hopefully that would solve my calculation problem.


      My expressions:

      Monthly hours: Sum(ServiceDuration)*4.34

      Cost per hour:  sum(SalaryAverageHourlyRateScript)

      Total Cost: Sum(ServiceDuration)*4.34 * sum(SalaryAverageHourlyRateScript)