Current charging mechanisms in the Internet are restricted mainly to volume and time of the day. We propose a mechanism which allows to use additional information for charging in the edges and core of the network. Links or network clouds will have weights which are dynamic, e.g. based on congestion level. This mechanism covers the current Internet protocol, IPv4, and the future one, IPv6, and in both cases, unicast and multicast. We also provide discussion on how charging using these weights along links or network clouds from edge to edge could be implemented.