User can populate time for data to be used

you probably want to wrap this around a try catch block just in case malicious users send you something different than integers:
```python
try:
  days_amount = int(request.GET.get('days', 1))
except ValueError:
  # return a 400 error or set a default value for days_amount.
```