Ruby code to estimate virtual desktop environments