pH 1 = 0.1 M H+
get rid of 99.9% of that and 0.1% remains which, in decimal form, is 0.001
so 0.1 * 0.001 = 0.0001 M H+
pH = -log(0.0001) = 4
do you mean you need help with converting -log(0.0001) into 4?
if so:
-log(0.0001) = -log(10^-4) = pH
put negative on other side
-pH = log(10^-4)
raise pH to the 10th power
10^-pH = 10^-4
so -pH = -4, and pH = 4