1. A method comprising: determining, by a processing device, a first duration of usage of a hardware resource on which a virtual machine is instantiated in a cloud; determining, by the processing device from the virtual machine on the cloud, a second duration of usage of a software resource that is utilized by a user on the virtual machine, the software resource comprising at least part of an operating system; and calculating, by the processing device, a usage of the cloud by the user in view of the first duration and the second duration.