Well for a start, 520nm is 520 nanometres and for some reason you've called it 590 x10^-9 (590 isn't standard form) where it's actually 5.2 ×10^-7 metres.
Put that into the equations:
f = c/λ = 3.0 x10^8/5.2 ×10^-7 = 5.77 x10^14 (3 s.f.)
(5.77 x10^14) x (6.63 x10^-34) - (1.1 x10^-19) =
2.73 x10^-19 J