A simple function for computing heat demand