For instance, you could do

```moment().subtract(daysBack, 'days').format('YYYY-MM-DD')```

instead of all this crazy shit