#4: use cleaner algorithm for determining latest file and default to 31 days