calculate balance by done transactions