Squares in Fractions

Calculate:

----------------------

A similar problem was given in Assignment 3 (Level M) of Charlotte Math Meetup:

Calculate:
.