How is the deductible pension/provident amount for tax calculation purposes calculated?

How is the deductible pension/provident amount for tax calculation purposes calculated?

The Deductible portion of the Pension/Retirement Annuity is calculated according to the below conditions as specified by SARS: What is the impact of Section 11k on me as a taxpayer.

The contributions towards a pension or provident fund us deductible based on the following conditions:

The deductible amount is limited to the lesser of these amounts:
  1.  27.5% of the greater of remuneration or taxable income (excluding lump sums),
  2. Capped at an annual limit of R350 000.
  3. Employees Actual contributions towards the fund.