add setting for number of days