How I found a mining calculation by reading through Javascript