Which of the following factors determine the buoyancy ?