Expanding Three Brackets Calculator