Added the new memory calculation formula