Calculation of the heat requirement for domestic hot water preparation