Due date calculation

Due date calculation

Hello, can the due date on a recurring invoice be one day before the next invoice? I tried to use the term "Net 30" but this won't work because some months have 30 days and some have 31.

Example: invoice date: 20/10/2024

I want the due date to be 1 day before the next invoice which is 19/11/2024, but the term "Net 30" gives me the due date as 20/11/2024 because this month has 30 days.

now if I use Net 29 it won't work for a month that has 31 days...

Can you please help me?
Thank you