Pay means base pay plus seniority payments and regular supplements, excluding meal and travel allowances and commissions, which is the criterion of the labour authority simulator. The months only reduce the entitlement on a fixed-term contract. Count at most four previous years: with the current one that is the five-year window.
The window is five years because article 131(6) gives two years for the training to be delivered and article 132(6) gives the hours credit three more years of life. It is the same window the labour authority asks for in its training-credits simulator.
The amount is pay, under article 132(2), so category-A income tax applies on top of the 11 % Social Security share. Income tax is not computed here because it depends on your bracket.
The statutory figures are floors: a collective agreement may give more hours, and article 131(9) allows the regime to be adapted. The Azores and Madeira regimes and the public sector are out of scope.