<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://sugarclub.sugarcrm.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Date Calculation in Process Definition or Business Rule</title><link>https://sugarclub.sugarcrm.com/explore/help-forums/enterprise-professional/f/enterprise-professional-questions/2787/date-calculation-in-process-definition-or-business-rule</link><description>I&amp;#39;m trying to compare two date fields in a single record, then perform a process if the difference between those dates is greater than 30 days. So the criteria for the action is IF Date1-Date2 &amp;gt; 30 days I see how to compare a date to a specific date,</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Date Calculation in Process Definition or Business Rule</title><link>https://sugarclub.sugarcrm.com/thread/10544?ContentTypeID=1</link><pubDate>Fri, 05 Apr 2019 08:36:59 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:d78a0c22-4da9-4fce-bf1d-c608303d1f13</guid><dc:creator>Bj&amp;#246;rn Canales Pfisterer</dc:creator><description>&lt;p&gt;A formular can look like this:&lt;/p&gt;&lt;blockquote class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;p&gt;subtract(daysUntil($enddate_c),daysUntil($startdate_c))&lt;/p&gt;&lt;/blockquote&gt;&lt;p&gt;&lt;span style="text-decoration:line-through;"&gt;The issue you will face is that this field only calculates when the record changes so if nothing happens to the target record the advanced process will not trigger and you will miss most of the events.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="text-decoration:line-through;"&gt;You need to find a way to update your target records repeadingly with something like a scheduler. &lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Edit: No issue with updating the calculation. You only need to recalculate the values for existing records once you have created a field with such a formula. &lt;/p&gt;&lt;p&gt;Bests&lt;/p&gt;&lt;p&gt;Bj&amp;ouml;rn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Date Calculation in Process Definition or Business Rule</title><link>https://sugarclub.sugarcrm.com/thread/10543?ContentTypeID=1</link><pubDate>Fri, 05 Apr 2019 01:40:56 GMT</pubDate><guid isPermaLink="false">5c521d64-519d-47a6-9065-134618b211bf:49a3ef26-18ba-4494-9282-1446abf1fe83</guid><dc:creator>Andr&amp;#233; Lopes</dc:creator><description>&lt;p&gt;We faced challenge like that in the past.&lt;/p&gt;&lt;p&gt;The solution was to create an integer field and setup a sugarLogic formula which calculate&amp;nbsp;the difference between those two date fields. Then you evaluate this custom integer field in the Process.&lt;/p&gt;&lt;p&gt;Not big deal!&lt;/p&gt;&lt;p&gt;Regards&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>