Add new function to retrieve 30 days of data

The new function will retrieve the last 30 days of data of the 30 days
before a date given in parameter.