November 23, 200619 yr I have got a calculation written to calculate if a date has expired but I'm not sure how to calculate the amount of time that has expired?? My calc is If ( renewal date ≤ Get ( CurrentDate ) ; "Expired" ; "" ) But how do I work out (in this instance) how many months have expired?? Thanks in advance
November 23, 200619 yr Depending on how what you want to see as the "Months" this could be as simple as (End Date - Start Date) / 30 Or this one that I borrowed from John Mark Osborne: (Year(End Date + 1) - Year(Start Date + 1)) * 12 + (Month(End Date + 1) - Month(Start Date + 1)) - Case(Day(End Date + 1) = Day(Start Date); 0; Day(End Date + 1) < Day(Start Date + 1); 1; 0) HTH Lee [color:red]p.s. This calculation comes from a file by JMO that he sells at his web site (see the sponsors) and is well worth the price, as it has several good calculations. Link Edited November 23, 200619 yr by Guest p.s.
Create an account or sign in to comment