Simulating a course/climb with xert

Hello

One thing I was thinking about was whether it would be possible to make a dynamic workout based on weight/power - current workouts I have seen all have fixed length intervals, like 8 minutes of 100%TP.
Would it be in any way possible to create a workout that changes duration of each interval in real time based on power input and rider/gear weight:
For example, if we take a real life climb, we have a slope of 10% for 2 kilometers. From this it would be possible to calculate how long the slope would take with given power and rider weight.

So for example, one day that slope would take 5 minutes at 250w, one day it would take 7 at 200w (just giving examples).

Right now the only way I can think of would be picking an assumed duration of the whole climb and portion that over each segment, say, 75 minutes for the whole climb and then somehow distribute those 75 minutes amongst all the different intervals - that is a lot of assumption.

However, if it was possible to make dynamic intervals, then it would be something like:

slope of 10% with length of 2km, you need 0.05 kwh for this, so your interval ends when you put that work in (and progresses to next segment, like 5% slope).
All the data is there, just the app would have to change interval duration dynamically, instead of interval power like I have seen with SMART workouts.
With this one would only need to provide slope % and segment length.