datetime.timedelta months

from datetime import timedelta
from dateutil.relativedelta import relativedelta

end_date = start_date + relativedelta(months=delta_period) + timedelta(days=-delta_period)

Here is what the above code is Doing:
1. We’re adding the number of months specified in delta_period to the start_date.
2. We’re subtracting the number of months specified in delta_period from the end_date.
3. We’re adding the number of days specified in delta_period to the start_date.
4. We’re subtracting the number of days specified in delta_period from the end_date.