update formula total