title: How to calculate number of rectangles in rectangular grid?
body: <p>I want to calculate number of rectangles in a rectangles.It can be done using formula</p>
  
  <p>(x^2+x)(y^2+y)/4</p>
  
  <p>but it also includes perfect squares like 1*1,2*2,3*3 etc.I dont want to include that in my calculations.How can i do that?</p>