How will we calculate ph depending upon pka of drug?



How will we calculate ph depending upon pka of drug?