Welcome to Smogon! Take a moment to read the Introduction to Smogon for a run-down on everything Smogon, and make sure you take some time to read the global rules.
I have been doing some math to answer two questions: if a Pokemon is being attacked by a Physical/Special move, whether it is a better investment to put EVs in HP or in Defense/Special Defense in order to maximize either: total HP remaining after the attack; or the percentage of HP remaining...