Streamflow Drought Index Calculation

I am helping some students with their environmental projects.

How is the streamflow drought index (SDI) calculated?

I see there are many methods online but which one is the best for the Europe? What are the differences in these methods? Which one is the most precise and which one gives the best approximation?

Are there any good softwares to calculate the SDI?