is there a work around towards calculating the accurate contract end date for a closed deal in Salesforce? We have a field which calculates the contract end date based on the [ Revenue_Date__c + ( Contract_Length__c * 30) ] , however, this is based on the assumption all months have 30 days, is there a work around this to get a more accurate contract end date?
We are on a Professional edition of Salesforce.
is there a work around towards calculating the accurate contract end date for a
Share
As far as I know it will be very tricky to do it with functions/formulas. You could start experimenting with this thing that finds the end of current month:
You could try calculating the difference between days and the end of this year, next year etc (depending on the contract length) but it will be a very nasty solution. And I cry a little every time I see home-grown date handling “library”…
Can you move the logic to apex? In a simple “before insert, before update” trigger it’d be very easy:
In “before” trigger you get save to DB for free as a bonus 😉 So essentially same as users would see it if it’s a formula field.