Perimeter Equations

Hi,

I am hoping to create a block that's length is based on the perimeter of a block. Is there any equation I can use to do this?

Thanks!

SolidworksParts And Features