ph computation