Capacity headroom
Capacity headroom is the fraction of a system's available capacity that remains unused at an expected workload. In this course, it is used to determine whether the VPS has enough spare CPU, memory and other resources to absorb traffic spikes and operational work.
Minimal example
total_ram = 4.0
allocated_ram = 2.4
unused_ram = total_ram - allocated_ram
headroom = unused_ram / total_ram * 100
print(headroom) # 40.0