Ionization Energy - Help!

It's about the hydrogen ionization energy... I know it's 1312 kJ/mole.

However, Ionization Energy means "Energy required to remove the outermost electron from an atom in the gaseous state" right?

If we apply this on Bohr's equation, we find that :

(delta) E = RH (1/ni square - 1/nf square) Where RH is Rydberg's const. = 2.18 x 10^-18. As we remove the electron from a hydrogen atom in its ground state, ni = 1 and nf = infinity.

Thus,

(delta) E = 2.18 x 10^-18 (1/1 square - 1/infinity square)

= 2.18 x 10 ^-18 J.

Is it 1312 kJ or 2.18 x 10^-18 J???

I know I must be wrong somewhere but I really can't find the mistake.

Thanks for help.