You need to sign in to do that
Don't have an account?
Jennifer.Schnell
What is the correct formula for this?
I am using a formula field "Term" to find the number of MONTHS in a contract. I want to return even partial months.
Examples:
Start Date: 3/15/2017
End Date: 3/31/2018
Result: 12.5
Start Date: 3/15/2017
End Date: 12/15/2017
Result: 9
What I have now is:
IF(
(Contract2_End_Date__c - Contract2_Start_Date__c) / 365 * 12 < 1, 1, (Contract2_End_Date__c - Contract2_Start_Date__c) / 365 * 12
)
How do I assure accuracey when there is leap year involved?
Examples:
Start Date: 3/15/2017
End Date: 3/31/2018
Result: 12.5
Start Date: 3/15/2017
End Date: 12/15/2017
Result: 9
What I have now is:
IF(
(Contract2_End_Date__c - Contract2_Start_Date__c) / 365 * 12 < 1, 1, (Contract2_End_Date__c - Contract2_Start_Date__c) / 365 * 12
)
How do I assure accuracey when there is leap year involved?
Hope you are doing great.
This is what we use. Our requirements were to include any partial month (even 1 day) as a full month for the count so if the start date is the last date of the month and the end date is the first day of the next, it is 2 months. YMMV.
OR--------------
Please mark it Best if this solved your problem.
Happy to help you