retVal.LastNDays is already loaded with the required value, should just use that rather than fetching again.