W = width of the rectangular part and diameter of the half circle
W/2 = radius of the half circle
H = height of the rectangular part
Area of the rectangular part = W * H
Area of the half circle part = 3.14 * (W/2)^2 / 2
= 3.14 * W^2 / 8
=0.3925W^2
Area of the shape = WH + 0.3925W^2