fix small bug with last 30 days calculation. iterate through results not list