Dear akxt;
Please show us your work so we can guide you in the direction.
I don’t know how you determined ni and nf, and if it can be done with Rydberg formula.
I got the result with the formula: ∆E = hv and v = c/λ.
Or use the formula under the question: "Why Einstein meets Beer-Lambert" on:
"Spectroscopy FAQ (http://www.p-forster.com/english/themes/Spectroscopy/Spectroscopy_FAQ.htm)"
I hope to have been of help to you.
Good Luck!
ARGOS++