You have two intersecting quadrilaterals (the area of intersection is the grey polygon with thick boundary):
These properties holds:
One quadrilateral is always a rectangle
There is always some intersection
Both quadrilaterals are convex (hence the intersection is a convex polygon as well)
The goal is to measure area of intersection (the actual shape is not needed, only a scalar showing how much space is covered by the intersection).