WIP: Calculate meter by categories

#190