Energy Balance Equation For Open System