Fatigue Index Field

Is there a way to set a field to calculate a fatigue index or fatigue rate with in an interval for testing purposes like what is done during a wingate test?

FI= [(Max Power - Min Power)/Max Power]x100

or [(Max 5s Power - Min 5s Power)/Max 5s Power]x100

Not yet but I am working on making Intervals.icu extensible with custom code to calculate things like this.