this generally works for me... is approximate enough to get the right answer everytime for pH questions...
since its -log(2x10^-4)
i take 4 (from -4) then subtract .2 (from the 2) and so the final answer is
3.8 ish
so something like.... -log (7x10^-8) i would do
8 - .7 = 7.3ish.. its off by a little but the answers, at least when i was studying were very ranged so it was close enough.. im sure theres something better, but it worked for me