code: def _compute(self, data):
          
          local_ts = self._local_ts(*data)
          dt = local_ts[internal_names.TIME_WEIGHTS_STR]
          # Convert dt to units of days to prevent overflow
          dt = dt / np.timedelta64(1, 'D')
          return local_ts, dt
docs: Perform the calculation.