Follow the below:
Go to System Administration Console, System and User Settings.
From the toolbar, click on View Settings, System.
Go to Credit management.
From the right column, go to the field, Due date relative to Period.
Set to True if this is calculated from the end of the month, or False to calculate from invoice date.
Exit to save.
