What are the equations for damage output in RPG Maker XP

Hi, I was wondering how the system takes all the numbers inputted into a skill (power, atk-f, str-f, etc.) and gets the damage it deals.  I've looked in the help menu, and in the code, but I can't find the equations.  Does any one know them, and does anyone know the input values for a normal attack?
Hi there,

A bit simplified:

For normal attacks:

(atk - pdef / 2) * (1 + str / 20)
 

For skills:
(power + atk - pdef / 2 - mdef / 2) * (1 + (str + dex + agi + int) / 20)

with each stat being multiplied by its particular rate.

Defense is ignored for healing skills.

Original thread: https://forums.rpgmakerweb.com/threads/what-are-the-equations-for-damage-output-in-rpg-maker-xp.39236/