How to calculate the resistor value for a led:
R = Resistance specified in Ohms (Ω)
= voltage of the powersupply specified in Volts (V)
= voltage drop over the LED specified in Volts (V)
= the desired current through the LED specified in MilliAmperes (mA)
When specifying the current through the LED, never go above the spec from the manufacturer. It is possible to have the LED shine less bright by adjusting the current downwards.