I believe the main factor is how much armor the enemy has, and possibly factoring in how much strength and Iron Flesh they have. The faster you are going, the higher the damage.
can't give you the actual output, and I'm guessing if someone posts the formula, it's going to be complicated, and you will still not fully understand it