Hello, Std payment terms doesn't provide this functionality and there is no supporting configuration.
Even you will think of customization you need to make sure the due date wont overwrite from other logic, for example, in system due date derived from Payment terms and whenever you change invoice date or payment terms , the due date recalculates.
One option could be create a new payment term with 0 days and and write you logic on invoice to calculate due date based on your business requirement.