do you know what current you need? the equation would be (12V - 3V)/current. So, in general (Source Voltage - LED Voltage)/Current. If you don't know the current, something like 20-25 mA is probably safe.