added config option for number of days in cycle