get previous 30 days data