Tax system scripts are used for calculating and reducing the capital gain taxes created by a portfolio.