Calculate shape dimensions and area