>any idea
Nope, I used to know where to look up the formula, but you need some voltage (forward and backward voltage, is it?) numbers describing the particular LED you used, along with the voltage of the batteries attached -- those go into the calculation, round and round, and come out with the approximate resistance needed. It's all here somewhere.