Quick formula question

Hey guys, I’m working on a personal compilation mod with tweaks (no current plans to release, it’s quick and dirty work for the most part using a bunch of other peoples’ hard work), and I’ve run into a minor issue.

Part of this mod removes the level cap, but doesn’t affect the actual experience gain (I’ve removed exp multipliers that another mod added), and I would like to cap the maximum exp needed to level up. The issue is, I don’t know if that’s possible, or what syntax is actually acceptable.

The current formula is:


Ideally, I would like to change it to something along the lines of:


Does anyone know what the proper syntax for this would be in Grim Dawn, or if it’s even possible?

quick edit: Uhh, changed the proposed formula because I completely mixed my functions up