What is the Code for Experience gain

What is the code to get the experience gained from battle?
also...
What is the formula to make the value start at 5 and then increase by 5 every 10 levels...
At what point do you want to get the EXP gained? Is that for a particular actor or just a total of EXP from each enemy?

To make what value start at 5?

This doesn't sound like a plugin request.
@Shaz
Sorry... if this is in the wrong forum can someone move it for me?

I want the intial level to be 5 and then have the value increase every 10 levels by 5...
IE:
Level 1: 5
Level 10: 10
Level 20: 15

I used the formula at first: 5 * Math.floor(level / 10)
Though this formula works, it has one flaw I can't fix: Level 1: 10

----------------------

I would like to put the experience earned by a character into a variable. Basically, at the end of a battle each character will have the experience they earned in that battle deposited into a variable to used for other purposes as needed...

I was thinking something like: /v[1] = gameActors.actor[1].expgained
something like that....?

Original thread: https://forums.rpgmakerweb.com/threads/what-is-the-code-for-experience-gain.118172/