I'm trying to write a (checkbox) formula field that looks at the stage name as well as days in a current stage. I am receiving an error that reads: "Incorrect parameter type for operator '>='. Expected Date, received Number"
IF(AND(ISPICKVAL(StageName, 'Initial Interest'), ((TODAY() - Initial_Interest_Date__c) >= 20)), TRUE,
IF(AND(ISPICKVAL(StageName, 'Qualified Interest'), ((TODAY() - Qualified_Date__c) >= 30)), TRUE,
IF(AND(ISPICKVAL(StageName, 'Solutioning'), ((TODAY() - Solutioning_Date__c) >= 40)), TRUE,
IF(AND(ISPICKVAL(StageName, 'Contract Review'), ((TODAY() - Contract_Review_Date__c) >= 30)), TRUE,
IF(AND(ISPICKVAL(StageName, 'Proposal Sent'), ((TODAY() - Solutioning_Date__c) >= 40)), TRUE,
IF(AND(ISPICKVAL(StageName, 'Waiting for Signature'), ((TODAY() - Contract_Review__c) >= 30)), TRUE,
FALSE)
)
)
)
)
)
Could anyone help?
Contract_Review__c
toTODAY()
in the lastIF()
, fox is suggesting that that field is not a date, and therefore causing the issue