
IF((Acquired_Date__c + 180 < TODAY()),
(Original_Cost__c * 0.025*
((((YEAR(TODAY()) - YEAR(Acquired_Date__c) - 1) *12) + (12 - MONTH(Acquired_Date__c) +1) + MONTH(TODAY())))-6),
0)
For example, if the Acquired date is 9/25/2013 and the Original Cost is $83,300.00, then the calculation should be:
83,300 * 0.025 * 4 (Today - 9/25/2013 in months - 6 months) = $8,330
Thanks!
2 answers
Steve,
you can try this and see if it works..
the diference between dates will give you number of days and we can divide by 30 for a rough number of monthsIF(
(Acquired_Date__c + 180) < TODAY(),
Original_Cost__c * 0.025*(((TODAY() - Acquired_Date__c)/30)-6),
0
)