Implement Balance calculation