I am trying to save the following formula field but it is giving me error.
TEXT(
MOD(
FLOOR(
TT_Calculate_Time_Elapsed__c), 24)
) & " Hours: " &
TEXT(
ROUND(
MOD(TT_Calculate_Time_Elapsed__c,1) * 60
, 0
)
) & " Mins"
It gives me the following error:
Error: Compiled formula is too big to execute (21,063 characters). Maximum size is 15,000 characters
Below is the formula field used in formula above:
TT_Calculate_Time_Elapsed__C
IF(
ISPICKVAL( Status__c , "Closed") ,
( ROUND( 8.5 * ( ( 5 * FLOOR( ( DATEVALUE( Closed__c ) - DATE( 1900, 1, 8) ) / 7) +
MIN(5,
MOD( DATEVALUE( Closed__c ) - DATE( 1900, 1, 8), 7) +
MIN( 1, 24 / 8.5 * ( MOD( Closed__c - DATETIMEVALUE( '1900-01-08 08:30:00' ), 1 ) ) )
)
)
-
( 5 * FLOOR( ( DATEVALUE( Opened__c ) - DATE( 1900, 1, 8) ) / 7) +
MIN( 5,
MOD( DATEVALUE( Opened__c ) - DATE( 1996, 1, 1), 7 ) +
MIN( 1, 24 / 8.5 * ( MOD( Opened__c - DATETIMEVALUE( '1900-01-08 08:30:00' ), 1) ) )
)
)
),2) )
,
( ROUND( 8.5 * ( ( 5 * FLOOR( ( DATEVALUE( NOW() ) - DATE( 1900, 1, 8) ) / 7) +
MIN(5,
MOD( DATEVALUE( NOW() ) - DATE( 1900, 1, 8), 7) +
MIN( 1, 24 / 8.5 * ( MOD( NOW() - DATETIMEVALUE( '1900-01-08 08:30:00' ), 1 ) ) )
)
)
-
( 5 * FLOOR( ( DATEVALUE( Opened__c ) - DATE( 1900, 1, 8) ) / 7) +
MIN( 5,
MOD( DATEVALUE( Opened__c ) - DATE( 1996, 1, 1), 7 ) +
MIN( 1, 24 / 8.5 * ( MOD( Opened__c - DATETIMEVALUE( '1900-01-08 08:30:00' ), 1) ) )
)
)
),2) )
)