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.
http://replay.pokemonshowdown.com/ou-371704559
The damage calculator you Smogon people use is obviously flawed. First turn Gengar died to a hit Gengar doesn't die to. Change the rules to Lv. 50 only like how it is ingame too, it will make for a much more genuine battling experience.