Total Energy Formula In Gravitation