Problem foreach and amount retweets per dates

php
api

#1

I have an array of arrays of dates, beginning and end, because I want to show this information in a chart.
When I use “foreach” and I call “statuses / user_timeline” and I use my recursive function to pagination, I have 88 error (Rate limit exceeded).
I want to find some way to get the amount of retweets per day, per week, per month or per specific dates.
i am programming a tool like dashthis and i need ur help.
Thanks.