Adding by year function , change byDay function name