Eftp calculation formula based on effort

I am curious what is the formula used on to calculate the eftp based on an effort.
i know it is common knowledge that ftp is 95% of a 20 min max effort
what what about other efforts?

i didi a 5 min max effort @337 watts. the resulting eftp is 276w. how do you come up with this value?

When looking at a workout the top row is populated with all sorts of values. Among them are eFTP en ride eFTP. If you click on one of them the following text is shown.

“Estimated FTP is calculated using power curves from FastFitness.Tips and Morton’s 3 parameter critical power model. The algorithm requires just 1 maximal effort of between 180 seconds and 30 minutes. Your estimated FTP will stay the same if you maintain your training load and decline slowly when you reduce training. To get it to go up you need to put in a max effort! The minimum duration required is configured in settings.”