susanna123
Technical User
I have start and end times and have calculated the time elapsed which is difference between start and end time. I would like to calculate the average of the elapsed time.
A formula field has been created for elapsed time.
The code is as follows:
Local NumberVar sec := DateDiff ('s',{@Instance Start Time} , {@Instance End Time}) ;
//sec := 12500 ;
Local NumberVar hrs := Truncate(Remainder(sec,86400)/3600);
Local NumberVar mns := Truncate(Remainder(sec,3600)/60);
Local NumberVar scs := Remainder(sec,60);
ToText(hrs,"00") + ":" + ToText(mns,'00') + ":" + ToText(scs,'00')
I would like to create a formula field to calculate the average of elapsed time. It would show the averages for every elapsed time
Can you show me how this can be done?
Thks.
A formula field has been created for elapsed time.
The code is as follows:
Local NumberVar sec := DateDiff ('s',{@Instance Start Time} , {@Instance End Time}) ;
//sec := 12500 ;
Local NumberVar hrs := Truncate(Remainder(sec,86400)/3600);
Local NumberVar mns := Truncate(Remainder(sec,3600)/60);
Local NumberVar scs := Remainder(sec,60);
ToText(hrs,"00") + ":" + ToText(mns,'00') + ":" + ToText(scs,'00')
I would like to create a formula field to calculate the average of elapsed time. It would show the averages for every elapsed time
Can you show me how this can be done?
Thks.