metric value logic