To shut down the Virtual Machine, use the Stop option of the Actions drop-down menu on the Virtual Machines list page or on the page of a individual Virtual Machine.
Billing of CPU and RAM of a virtual machine stops only when using mentioned method of shutting down the virtual machine.