added ability to select number of days