How To Calculate Energy In Physics