def _ndays(self, start_date, ndays):
if not getattr(self.args, '<STR_LIT>') and not self.config.get('<STR_LIT>', None):<EOL><INDENT>raise Exception('<STR_LIT>')<EOL><DEDENT>d = date(*list(map(int, start_date.split('<STR_LIT:->'))))<EOL>d += timedelta(days=ndays)<EOL>return d.strftime('<STR_LIT>')<EOL>
Compute an end date given a start date and a number of days.