$${E^f_\text{max} = hf = h\cdot \frac{c}{\lambda_r}}$$