Add total value calculation