compute advances