function for calculation of condusion metrics