Distributed metering or calculation of charges