How to Compute Cut or Fill with the Grid Method