add formula calculation