Each year, the calculator first determines the dividends earned based on the current investment value. These dividends are then reduced by the tax rate. The net dividends are then reinvested, increasing the number of shares you own. The total investment value then grows based on the annual price growth, and this new, larger value becomes the basis for dividend calculations in the subsequent year, creating a powerful compounding effect.