How is the Cash balance calculated