Improvements to calculated fields.

- Calculate last x months from the last timestamp not from today's date.
- Refresh ES after each calculation
- Better parsing of summary stats.