Nice script.
I found on my servers, 2008 R2, I had to divide growth by 128 to reflect the value shown in the UI.
Bill Soranno
MCP, MCTS, MCITP DBA
Database Administrator
Winona State University
Maxwell 143
"Quality, like Success, is a Journey, not a Destination" - William Soranno '92