Roughly you would work out the area of each contour line and multiply by the distance between lines.
There is an interesting law for the area of any polygon if you are given the contours as line segments.
The coordinates of each vertex of the polygon, ie x0,y0 is the first corner, x1,y1 is the second etc..
The nice thing is that you don't have to calculate any lengths or angles.