How many different rectangles can be seen in an $$ n \times n $$ grid like the one shown? Of course the rectangles must be at least one box wide and deep, and squares are allowed. https://i.stack.imgur.com/xHdVr.jpg
I'm ask for a help hand. greetings.