It converts a voltage difference in the corrisponding dB value of gain or attenuation.
Initial voltage value . . . . . IN
Final voltage value . . . OUT
You can use any measure unit of power but it must be the same for the two inserted numbers.
Some reference levels :