The formula used to compute density is:

density = mass/volume