docs: static long calculateAverage(long currAvg, long currInvoc, long rowAvg, long rowInvoc)
      {
          long currTtl = currAvg * currInvoc;
          long rowTtl = rowAvg * rowInvoc;
  
          // If both are 0, then currTtl, rowTtl are also 0.
          if ((currInvoc + rowInvoc) == 0L) {
              return 0L;
          } else {
              return (currTtl + rowTtl) / (currInvoc + rowInvoc);
          }
      }