refactored computing formula parts