calc_phi function

Calculate equilibrium quantities with life history groups