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
E-series 

Results
Total voltage drop in leds2.4 volts
Required resistor12.8 ohms
Nearest resistor in E-series13 ohms
Resistor power loss~7.089231 watts
Current with selected resistor~738.461538 milliamperes