How the estimate works
We first count how many characters the password has and which kinds it uses: lower case, capitals, digits, symbols. That gives the size of a pure brute force search.
Then we look for patterns that attackers try first: the 10,000 most common passwords, English words, letter swaps like 4 for a, sequences like abcd or 4321, repeats like aaaa, dates and years, and keyboard walks like qwerty, azerty or qwertz. The cheapest way to build your password from these pieces gives the estimate in bits.
The crack time assumptions
The times are averages for three common scenarios: an online attack on a site that limits attempts (100 guesses per hour), an offline attack on a well stored password hash such as bcrypt (10,000 guesses per second), and an offline attack on a fast, unsalted hash with many graphics cards (10 billion guesses per second). Real attacks can be faster or slower.
Limits
No tool can know every name, pet or date that matters to you. A high score is an upper bound. A password that is strong but used on several sites is still weak: one breach exposes all of them. Use a different password for every account, ideally from a password manager.