Led resistor calculator help

got them working,with a resistor ,and they dont heat up, the problem was that the two same type of led ,were different but they looked same; one type required 145ma and the other type 30-40ma, so i fixed a pot and got the 30-40ma one working perfectly, the voltage drop i measured was 3.10v and the current was 35ma,with a resistor of around 81 ohm.