calc_pmn function

Calculate the index for the microbial biological activity