LED current limiting resistor calculator

Calculates a current limiting resistor for LEDs.

Example 1: Must calculate the resistor for a led string of 4 green 5mm leds and 12V supplyView example
Supply voltagevolts
Target currentamperes
Led color 
Leds in seriespcs

Total voltage drop in leds10.4 volts
Required resistor80 ohms
Nearest resistor in E-series82 ohms
Resistor power loss~31.219512 milliwatts
Current with selected resistor~19.512195 milliamperes