Please refer this script of you want to calculate an particular folder size.
NOTE:
Editable parameter:
path=r"C:\Program Files" #Provide your folder path
Please run this script as system user
---
Comments