The calculation is tested over 1000 pokemons and gives nearly perfect result for pokemon go.
Pokémon © 2002-2016 Pokémon. © 1995-2016 Nintendo/Creatures Inc./GAME FREAK inc. TM, ® and Pokémon character names are trademarks of Nintendo.
No copyright or trademark infringement is intended in using Pokémon content
Pokemon images are from Bulbapedia and content is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike license.