How do you determine the mass of fuel in a semi truck?

You can weight the truck empty, the mass it after the tanks are filled, all on a certified scale.