calc_ph_delta function

Calculate the difference between pH and optimum