https://envisionapex.com/blog/performing-calculations-on-an-enterprise-database/
Performing Calculations on an Enterprise Database