Terms turn an invoice date into a due date. Net 15 adds 15 days and Net 30 adds 30, counting calendar days. Due on receipt is due the day it is issued.
The terms on the customer fill in each new invoice. You can override them on one invoice, but a mismatch with the contract is usually a mistake: the customer pays by the contract, and your aging report says they are late when they aren't.
An invoice is overdue once its due date has passed and money is still open on it. "Days past due" counts from the due date, not the invoice date; that is the number collections calls and aging reports use.