pyppr.ppr_tr#
- pyppr.ppr_tr(nper, standard_withdrawal)#
- Get the tax rate applied on the PPR capital gains. - Given:
- the total number of compounding periods, - nper,
- and whether the PPR will be withdrawn in standard conditions or not, - standard_withdrawal.
 
- Return:
- The tax rate applied on the PPR capital gains. 
 - Parameters:
- nperscalar
- Number of compounding periods 
- standard_withdrawalbool
- Whether the PPR will be withdrawn in standard conditions or not. 
 
- Returns:
- outscalar
- The tax rate applied on the PPR capital gains. 
 
 - Notes - At the time of writing, PPR capital gains are taxed at 8% if the investment is withdrew in the situations foreseen by law. In non-standard situations, the tax rate applied depends on the time the investment was held, as follows: - Holding for less than 5 years: 21.5% 
- Holding between 5 and 8 years: 17.2% 
- Holding for 8 or more years: 8.6% 
 - Examples - >>> import pyppr >>> holding_periods = [4, 5, 7, 8, 9] >>> trs = [pyppr.ppr_tr(period, False) for period in holding_periods] >>> print('In non-standard withdrawals, PPR capital gains are taxed at:') >>> for period, tr in zip(holding_periods, trs): ... print(f'- {tr:.1%} in a {period}-year investment.') In non-standard withdrawals, PPR capital gains are taxed at: - 21.5% in a 4-year investment. - 17.2% in a 5-year investment. - 17.2% in a 7-year investment. - 8.6% in a 8-year investment. - 8.6% in a 9-year investment.