metrics_calculate function

Method in charge of verifying the implemented metrics