code: def duration_minutes(duration):
      
      if isinstance(duration, list):
          res = dt.timedelta()
          for entry in duration:
              res += entry
  
          return duration_minutes(res)
      elif isinstance(duration, dt.timedelta):
          return duration.total_seconds() / 60
      else:
          return duration
docs: returns minutes from duration, otherwise we keep bashing in same math