→A most accuracy GenV formula for Exp. Points gained in battle
finalExp = tct(tct(tct(sFinal x t) x e) x p)
NOTE: I can't test if that's the real order, because I don't have any international traded Pokémon and any Exp. Point Power.
: Amazing! I just make it into a better look equation, but I haven't test it yet
: aux2 is equal to 1 if the Pokémon has Exp. Share equipped or 0 if not.
: s1 is the number of Pokémon that participated in the battle and have not fainted. If any Pokémon in the party is holding an Exp. Share, "s1" is equal to twice the number of Pokémon that participated instead.
: s2 is equal to twice the number of Pokémon holding the Exp. Share in the party.