Advance Salary Adjustment at the end of month

How can i adjust advance salary amount to salary at the end of month