Correct Resistor for maximum light output on Red LED

encryptor:
It says on the front of the package 5 volt, 30mA, 300mcd.

You shouldn't try to draw more than 20 mA from the output pins anyway, continuously.