How can I collect daily, weekly, and monthly traffic totals by interface?

Hello, is there an easy way to collect traffic totals by interface for day/week/month/year? Thanks