Simplify ComputeBoxSum