flexible number of days for analysis