By default, the legal payment term of 30 days is set. If you want to change this, go to 'Settings' > 'General' and enter the preferred payment term. Tick the box at the bottom to set the payment term for the end of the month.
Apart from the general payment term you can also set a payment term per customer in their file. When you create an invoice for that customer, the general payment terms will be overwritten by the one specifically for that customer.
You can also set a payment term for a supplier. When you check the option 'Use payment term instead of OCR' in your settings (see above), the payment term recognized by the OCR on the invoice will be overwritten by the payment term set in the supplier file.