Need help with my skills

I need help with damage formulas,

My skill is called : Meteor Waste . the description as follows :
"Deals earth elemental damage to enemies within an area of effect (Aoe Radius : 60) . The damage is increased by each enemy
within the area."

I'm using Yanfly AOE plugins.

For example :
if this skill only hits one enemy , the enemy will take 50 damage.
if this skill hits two enemies, the enemies will take 80 damage.
and so on.

I would like to add limit damage as well.

thanks for the help.

Original thread: https://forums.rpgmakerweb.com/threads/need-help-with-my-skills.84263/