pH of very dilute acids
Your formulation us correct for an acid with one dissociable proton ($x=1$) below pH 7, and if you assume ideal solution behavior it even works beyond your upper bound.  Typically you should take $x=1$ because, mostly, even most strong acids dissociate one proton.  However...

One limitation, however, is when you have an acid with two or more dissociable protons.  If the second proton dissociates before you get to pH 7, then you need to add that into your calculation (and then it gets a lot more complicated).  Among common acids sulfuric acid is the one that will do this; in the limit of extremely dilute solutions (0.001 molar or less, roughly), the pH of a sulfuric acid solution will be about 0.3 unit lower than your formula with $x=1$ because of that second dissociable proton.