The net cash flows are calculated by subtracting the total cash outflows from the total cash inflows. While the closing balance equates to net cash flows plus starting balance.