Add term factor calculation.