## Calculating no. of polyhexagon

I want to calculate number of polyhexagon that can be drawn in a given area (lenght X breadth). Let suppose the side of each hexagon be 'd'.

e.g.,
Case 1: If length, l = 100 cm & breadth, b = 500 cm.
and side of each hexagon, d = 5 cm. Then what will be the maximum number of polyhexagon, n, that can be created in the given region ?

Case 2: If length, l = 100 cm & breadth, b = 500 cm.
and side of each hexagon, d = 10 cm. Then what will be the maximum number of polyhexagon, n, that can be created in the given region ?

Case 3: If length, l = 500 cm & breadth, b = 200 cm.
and side of each hexagon, d = 7 cm. Then what will be the maximum number of polyhexagon, n, that can be created in the given region ?

Case 4: If length, l = 500 cm & breadth, b = 200 cm.
and side of each hexagon, d = 17 cm. Then what will be the maximum number of polyhexagon, n, that can be created in the given region ?

What will be the generalized formula for solving such type of scenario ?