how can a boat made of steel float?

How can you calculate the maximum amount of mass you can add to a boat before it sinks?

in terms of density, what determines if an object floats or sinks?