-
Intent/Governance affecting more than 1 eCQM
-
Resolution: Fixed
-
Minor
-
None
-
Yes
-
Someone on the cypress talk list has identified an error in the implementation guidance for the date calculations (from TJC).
Just wanted to make sure you concur before slating this for correction.
In example 2, which illustrates the case where Day (date2) < day(date 1), the example does not satisfy this property.
So, the calculation shown is correct, but does not reflect the the The example #2 should have a day component for date 2 that is less than the day component of date 1.
I suggest a revision, as follows:
2. Day (date 2) < day (date 1)
Duration (months) = (year(date 2) – year(date 1))*12 + (month(date 2) –month (date 1)) – 1
Example 2:
Date 1: 2012-03-10 22:05:09
Date 2: 2013-01-09 07:19:33 (currently the date is 2013-01-29, so 29 isn't less than 10)
Duration = (year(date 2) – year(date 1))*12 + (month (date 2) –(month date 1)) – 1
= (2013 – 2012)*12 + (1 – 3) - 1 = 12 – 2 - 1 = 9 months (missing -1)