Added function to calculate which days are most productive for a given habit