function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Nadeem Uddin 2Nadeem Uddin 2 

Trigger that updates a date field when multiplied by a value in a number field

Can someone help me automating this requirement?

We have three fields => Start Date , Term_Duration__c , Termination Date . I want to update the Termination Date using a formula that calculates the date as Start date * Term_Duration__c , Terms is a number field that captures no. of months.

Any other alternative to do this will be greatly appreciated.
snehal surti 3snehal surti 3
Hi Nadeem,

Formula field will be the best option for your purpose and i dont see why you will need process builder or workflow rule or any trigger for this kind of logic. Instead of multiplication between start date and term duration you will have to do addition of term duration to start date so it can give you exact termination date.

Thanks
Snehal
Nadeem Uddin 2Nadeem Uddin 2
ok thanks , it helps a little
 
snehal surti 3snehal surti 3
Hi Nadeem,

If it solved your problem then can you select the answer as best so others in community can use this knowledge?