Primary Purpose Area

How it's Calculated


How is Cleantime Calculated?

There may be some confusion as to how we calculate cleantime. We do it exactly the same way that it's done in NA meetings:
1) If the cleantime is less than, or equal to, 90 days:
  Here, we count days. Months and dates don't really come into play. This means that 30 days is actually 30 days. February 15th to March 15th is 28 days in a non-leap year, and 29 days in a leap year. You don't get 30 days until March 16th or 17th.
2) If the cleantime is greater than 90 days:
  Here we count by dates. This means that February 15th to June 15th is considered 4 months and February 15th to August 15th is six months exactly. February 15th to August 31st is six months and 16 days. February 15th to September 1st is six months and 17 days. You don't have seven months until September 15th. February 15th to May 16th is 90 days, but February 15th to May 17th is three months and two days.
Confused? You should try writing the code to figure it out! It's a complex little algorithm, and may suffer from errors. If you find errors in the calculations, please tell us:
1) The exact date that you entered.
2) The result: both the years/months/days.
3) The results that you expected.
We want it to work well, but we'll need your help. Just telling us "It's malfunctioning" or "It doesn't work" is no help. We have tested it as well as possible, and think that it works fine. We need you to tell us what to do to get incorrect results.
We sincerely believe that this is the best cleantime calculator in the World. This is the only one (we know of) that was written specifically by NA members, for NA members.

Home ] Up ]

Send mail to with questions or comments about this web site.
Primary Purpose Area of Narcotics Anonymous 2007 - 2014  - All Rights Reserved
Last modified: January 17, 2010