Cold and hot energy storage density calculation