From High School Geometry.
Divide the bore by 2. That's the radius. Multiply that by itself. That's the square. Times pi. I use 3.14. And that's the flat or square area.
Multiply the flat area by the stroke and you have cc's.
Or cubic inches. That depends on what you started with.