derive total number of days when edit habit challenge