modify formula calculation