what is the formula of rectagular prims