Limiting the TP gauge

Hey I’m trying to use TP in my game as well as MP.
From what I’ve learned the properties of TP are
1. You gain it depending on if you use a skill or take damage.
2. You start every battle with a random amount of it.
3. Caps out at 100 regardless of your level.

My problem is how would I make it so that the TP gauge instead of capping out at 100 by default, starts off low corresponding to my level and increases as I gain level and progress?
It kind of breaks my game when I’m level 3 with potentially 65TP to use on powerful skills.
At level 3 the most I should be allowed to have is a cap of 15, lvl 4, a cap of 17 etc.

Original thread: https://forums.rpgmakerweb.com/threads/limiting-the-tp-gauge.155405/