Complete update command and Total calculation