The due date is calculated based on the invoice date and the terms of payment, but can be changed manually if needed.
Cash Discount
If cash discount is used as payment term you will see the Due date in the first date field and the date to which the cash discount is valid is shown in the other field. To the far right you can see the cash discount in percent. The cash discount can be changed.