Calculating the marginal costs of a district-heating utility