calc_metrics function

Calculate one or more chemical metrics