How do you determine motor size in cubic inches?

Its something like Bore x stroke x something