Calculate package size