I'm trying to create a formula that would calculate the business days between "Claim Filled/Submitted Date" and "Date/Time Closed" for claims turn time. I'm using the formula:
(5 * ( FLOOR( ( date_1 - DATE( 1900, 1, 8) ) / 7 ) ) + MIN( 5, MOD( date_1 - DATE( 1900, 1, 8), 7 ) ) )
-
(5 * ( FLOOR( ( date_2 - DATE( 1900, 1, 8) ) / 7 ) ) + MIN( 5, MOD( date_2 - DATE( 1900, 1, 8), 7 ) ) )
However, I'm not sure how to replace date_1 and date_2 with the fields I want. I keep getting an error saying the custom field doesn't exist.
(5 * ( FLOOR( ( ClosedDate - DATE( 1900, 1, 8) ) / 7 ) ) + MIN( 5, MOD( ClosedDate - DATE( 1900, 1, 8), 7 ) ) ) - (5 * ( FLOOR( ( Claim_Filed_Date__c - DATE( 1900, 1, 8) ) / 7 ) ) + MIN( 5, MOD( Claim_Filed_Date__c - DATE( 1900, 1, 8), 7 ) ) )
ClosedDate
from theCase
Object, that's a Date-Time field and you'll need to get the DateValue of it. That's likely why it's not working for you.