def AddMonths(start_date, months):
 current_date = start_date
 i = 0
 while (i < months):
  month_days = calendar.monthrange(current_date.year, current_date.month)[1]
  current_date += timedelta(days=month_days)
  i += 1
 return current_date

def AddMonths ( start_date , months ) : current_date = start_date i = 0 while ( i < months ) : month_days = calendar . monthrange ( current_date . year , current_date . month ) [ 1 ] current_date += timedelta ( days = month_days ) i += 1 return current_date
a simple convenience utility for adding months to a given start date .