(((.4 * L + 2) * A * P / D) / 50) + 2
L = Level of Attacker
A = Attack of Attacker (Including Swords Dances and such abilities)
P = Power of Attack
D = Defense of Defender (Including Acid Armour and such abilities)
You have to take the integer value each value within the parenthesis and then the total value cannot be greater than 999.
Next if the attack type matches one of the attackers types multiply by 1.5 and take the integer value otherwise just take that value
Next multiply by effectiveness (4x, 2x, 1x, 1/2x, 1/4x, 0x) and take the integer value of that...
That value is the maximum possible damage and to get the minimum damage multiply by 217/255 (IIRC)
"My staff is complaining about the rats in the kitchen; I want to hire a new staff" -Lunchlady Doris on how to spend the School's oil money
"If any punk-a** Charmander tries to mount my Koffing, I'll have Wiggly crack his spine and Lee will throw him in a vat of Psyduck Surf!" -Mr. K on different species ability to breed
"Heh.....ditto is a G** D*** pimp in g/s....he gets all the a**.." -Argo on Ditto's ability to breed with anything/one
"My Mewtwo's slower than yours because he just had his way with that cute eevee over there, and now he's tired" -CFalcon making a pun on how sex (gender) affects stats