calculate string password function

its maybe work but need to refix those display value position