title: Convert a timedelta to int
body: <p>I would like to convert timedelta to int so that I can do math with it but I keep getting this error:</p>
  <pre><code>numpy.core._exceptions._UFuncBinaryResolutionError: ufunc 'true_divide' cannot use operands with types dtype('O') and dtype('&lt;m8[D]')
  </code></pre>
  <p>here is the code:</p>
  <pre><code>zeit = datetime(2023, 1, 1)
      today = datetime.now()
  
      new_date = zeit-today
  
  days_int=(new_date / np.timedelta64(1, 'D')).astype(int)
  </code></pre>