Tool for calculating metrics