Numbers

Hi,
I want to sum numbers like numerology. An example is better than any explanations :
458 = 4+5+8 = 17 = 1+7 = 8

I don’ tknow how to do it. I’m not really good in maths.
Any help would be nice.
Thank’s a lot.

Chris