Voltage to dB Converter

Parameters   Input
Beginning Voltage (V1)   Volts
Ending Voltage (V2)   Volts
Gain Ratio (Vr = V2/V1)  
Gain/Loss in dB (dB)   dB