MZ TP Regen formula help (Visustella Enhanced TP)

Good afternoon, party people.

I'm using the Visustella Enhanced TP System plugin and I need help with a TP regen formula. I have a TP mode that grants ever increasing TP during each turn, but I'd like it to have a maximum ceiling (in this case 100 TP per turn). Here's the formula:

2 ** user.turnCount() * user.tcr

I assume a Math.max(100) would fit in there, somewhere? I'm just not sure where it would go, or if that's even the right thing to use. Looking forward to seeing what ya'll come up with.

Thanks in advance!
You wouldn't want Math.max, if you take the larger (maximum) value then that will keep going with whatever your formula produces above 100.

If you want to cap it, then you're using the lower of the values that you're considering (the minimum). And you just put everything you typed inside of it.
Code:
Math.min(100, your formula)
I see my mistake now! I just tested it, works perfectly. As always, thank you muchly.

Original thread: https://forums.rpgmakerweb.com/threads/tp-regen-formula-help-visustella-enhanced-tp.164880/