derive total number of days when edit habit challenge
Merge pull request #405 from ruijunhuang2010/master

derive total number of days when edit habit challenge