cancel
Showing results for 
Search instead for 
Did you mean: 

calculate average time from string type

Ruchita
Cosmonaut

Hello!

I have a dataset with certain time of completion. They were originally ij long/big int format, and dusing formatDuration() in incorta, i have transformed it to (days, hours:minutes:seconds) format. This conversion of format results in an output in the string datatype. 

How can i construct a formula in incorta to get the average completion time in (days, hours:minutes:seconds) format ?

Example:

Task Time SpentFormatted Time Spent
1400957301:06:49
2563025301:33:50
310,103,17302:48:23
average:-6580999.6701:49:41

 

Thanks in advance

2 REPLIES 2

anurag
Employee
Employee

This video may give you some idea to solve this problem:

https://www.youtube.com/watch?v=E0HPEiRQyjc

 

@anurag I liked the technique in the video. I put a comment on it. There is a limit to int() for conversion. I ran into this with very large millisecond counts. I was successful in using long() for the conversion with formatDuration().