Calculate space usage