Potential Divider Calculator.

Source code supplied by: www.electronics2000.co.uk © Simon Carter.

The first one calculates the voltage from known resistor values.

The second finds suitable resistor values if the desired output voltage is known.

The third calculates R2 given V1, V2 and R1.