arranged api to return past 2 weeks