There might be some limitations if you select "31" as the number of days, so the way I set it up was using 30 days (both for "days of month net due" and "due next month if within days"). You can test it out to see how it behaves for months like February.