Skip to main content
Current formula is: CEILING((End_date__c - Start_Date__c) / 365 * 12)

 

This works for the following dates:

 

Start Date: 01/05/18

 

End Date: 30/04/18

 

Contract Length: 12 (months)

 

Start Date: 03/05/18

 

End Date: 06/05/19

 

Contract Length: 13 (months)

 

However, does not work for the same date of the next month.

 

e.g.

 

Start Date: 03/05/18

 

End Date: 03/05/19

 

Contract Length should be 13 months (1 year and one day) however, comes out as 12 months
6 respuestas
  1. 20 jun 2018, 10:21
    Hi Serena Shergill,

     

    Please update your formula like below,

     

     

    DATE( Year([start date])+floor((MONTH([start date]) + [# of months] - 1) / 12) , 

        mod(MONTH([start date]) + [# of months] -1, 12) + 1 , 

         day([start date])

    ) - 1

     

    Thanks,

     

    Krutarth Soni

     

     
0/9000