Hi,
Check the last posting date of the document and add 30 days in the next posting date. Suppose the last posting date of the document is 31.12.2015, payment terms is 30 days, then you can maintain the next posting date as 31.01.2016.
Regards,
Mukthar