Changed DMAX formulas to improve computational time and tested for correctness