Datetime arithmetic logic30-09-2022next_month = lambda dt, multiplier: (dt.month - 1 + multiplier) % 12 + 1