Well if you determine the entire matter of the cosmos it is positive. If you estimate the overall energy of the cosmos it is negative because of gravity. Gravity as we know it has negative energy. When you sum these two together what do you get? Zero, so it requires no energy to generate a universe.