Try this > http://www.ehow.com/how_7241089_calculate-load-resistor.html
This is a Simple Dialog Demo.