The HRA amount is calculated based on your basic salary, the city in which you live, and the actual rent paid for the accommodation.