How do you determine the amount of heating energy?

The amount of heating energy for the heating of the apartment is determined based on the cost of one m2 of the heated area of the apartment block (according to the amount of thermal energy recorded at the connection of the building block) and based on the heated surface of the apartment.