Hey there!
According to Archimedes principle, an object floats if the bouyancy force exerted on it the fluid will balance its weight , which means FB=mg.
Also, the principle states that the bouyant force is the weight of the fluid displaced.
So, the amount of fluid displaced is the weight of the body.
And the formula for finding weight is
W = V×p×g