Calculating yearly category data