This function will return the discount date.
The value can then be mapped to an element using the segment maintenance.
The literals surrounded by the “|” are
keywords. INVDATE is the keyword representing the invoice date. This formula
calculates the discount date.