Add total value for formatter callback function