How To Calculate Magic Number