Formula:
\[ R = \frac{V_{supply} - V_{LED}}{I_{LED}} \]
\[ P = (V_{supply} - V_{LED}) \times I_{LED} \]