Does anyone knows how to calculate Heat Wave Duration Index in excell?

In RClimDex can't be calculated this temperature indices, or at least it's not written any script, because there wasn't the option to calculate HWDI on the list of temp indices I could choose to calculate.

The only formula I could find is here:

http://eusoils.jrc.ec.europa.eu/esdb_archive/eusoils_docs/other/EUR_23291.pdf
(at page 48)

But it's differently formulated than the formula I'd like to use.

I mean I know this formula showed there needs to be transformed in order to use it into excell, but I know the formula may be written in different ways.

I want to use a formula that shows the number of cases when at least three consecutive days exceeds TX95thp.