Crystalguru
Technical User
Hello,
I am in need of calculating an average closing time on this formula:
//time between open and close call
//begin formula
WhilePrintingRecords;
NumberVar TotalSec := datediff("s",{Help_Desk.Problem Request Date}, {Help_Desk.Close Date & Time}) ;
NumberVar Days := Truncate (TotalSec / 86400);
NumberVar Hours := Truncate (Remainder ( TotalSec,86400) / 3600);
NumberVar Minutes := Truncate (Remainder ( TotalSec,3600) / 60);
NumberVar Seconds := Remainder ( TotalSec , 60);
Totext ( Days, '00', 0,'') & 'day:'&
Totext ( Hours, '00', 0,'') & 'hr:'&
Totext ( Minutes,'00', 0,'') & 'min:'&
Totext ( Seconds,'00', 0,'') & "sec"
//end formula
ANy ideas?
thanks!
I am in need of calculating an average closing time on this formula:
//time between open and close call
//begin formula
WhilePrintingRecords;
NumberVar TotalSec := datediff("s",{Help_Desk.Problem Request Date}, {Help_Desk.Close Date & Time}) ;
NumberVar Days := Truncate (TotalSec / 86400);
NumberVar Hours := Truncate (Remainder ( TotalSec,86400) / 3600);
NumberVar Minutes := Truncate (Remainder ( TotalSec,3600) / 60);
NumberVar Seconds := Remainder ( TotalSec , 60);
Totext ( Days, '00', 0,'') & 'day:'&
Totext ( Hours, '00', 0,'') & 'hr:'&
Totext ( Minutes,'00', 0,'') & 'min:'&
Totext ( Seconds,'00', 0,'') & "sec"
//end formula
ANy ideas?
thanks!