Shared publicly  - 
 
If you have an n by m grid of points, you can connect 4 points to make a square in (2mn^3-2mn-2n^4+n^2)/12 different ways.
#cleaningscrapsofpaperoffmydesk
1