Chrome extension that calculates number of past events and their duration for current week, month and year