calculate lucky number