This function returns the number of script threads you need when running the hack command to steal the specified amount of money from the target server. If hackAmount is less than zero or greater than the amount of money available on the server, then this function returns -1.
//For example, let’s say the foodnstuff server has $10m and you run:
hackAnalyzeThreads("foodnstuff", 1e6);
//If this function returns 50, this means that if your next hack call is run on a script with 50 threads, it will steal $1m from the foodnstuff server.