Datetime arithmetic logic

September 30, 2022

next_month = lambda dt, multiplier: (dt.month - 1 + multiplier) % 12 + 1