calculate sizew