made the number of days a single controller variable