Implementing Huiyi's formula.