If you work for the government!! The salary calculation is straightforward: Breakups are listed below.

Basic pay is computed depending on the pay level to which you have been assigned, for example, pay levels 3, 4, and so on.

House Rent Allowance: It will be computed based on basic wage in three categories: 27% for metro cities, 18% for semi-urban regions, and 9% for rural areas.

For Ex:
If a person is appointed in pay level 6 the calculations are below:
Basic pay: 35400
HRA: 9558
DA: 10974
Transport allowance : 3600 + 432 DA
Gross: 59532
Upon this 10%, NPS will be calculated on Basic and DA

This is for Central Government, it can vary for different states.

2 months later

The method to calculate your salary as per the 7th CPC is simple. The salaries are obtained by multiplying the existing basic pay by a factor of 2.57 and the figure so arrived will be added to all the applicable allowances such as Transport Allowance (TA), House Rent Allowance (HRA), Medical Allowance, etc.