When a customer or vendor invoice is entered, the actual date of the invoice is usually used as the posting date. Both the due date and the cash discount date are in that case calculated from this date.
From time to time, the user might need to calculate the due date and cash discount date based on a date that differs from the posting date.