Working on implementation of formula.