Automatic management of advances