Why there are two factors, not three
A decibel is a tenth of a bel, and a bel is the base-10 logarithm of a power ratio. That is where the factor 10 comes from.
Voltage and sound pressure are field quantities. Power is proportional to their square (twice the voltage into the same impedance is four times the power), and in the logarithm the square becomes a factor of 2. That is why the formula has 20 instead of 10.
The selection above has three entries, but there are only two calculations behind them: voltage and sound pressure are mathematically identical. Both are listed so that you find the one you are looking for, not because they differ. This note is here so that nobody suspects a difference that does not exist.
Values worth remembering
Twice the power is 3.01 dB, ten times the power exactly 10 dB. Twice the voltage is 6.02 dB, ten times the voltage exactly 20 dB. And 6 dB more sound pressure takes four times the power, which is why an amplifier with twice the power sounds so little louder.
Limitations
The intended range is ratios from 10⁻¹² to 10¹², or ±120 dB as a power ratio. That is also the span between the threshold of hearing and the threshold of pain. Larger ratios do not occur in audio; they are calculated, with a warning.