add interface and simple algorithm to calculate average for dayly, weekly, and monthly