How to calculate specific liquid volume?
You could use a cube, to scale it that it has a volume of 500ml, calculate the 3rd root of 500 ~ 7.93 (this should be the edge-length) scale the cube to this size.
For a bottle you might want to model a funnel.

For the fluid simulation setup:


Set the cube as fluid
The vessel as obstacle
The funnel as obstacle


For all set the Rigid Body Collisions shape as Mesh.


Add a domain object as domain
Set the rigid body types to passive otherwise they will fall down.
Increase the resolution to ~90 (more would be better but extremely time consuming)
Bake the fluid sim.




After filling your vessel you can use the methods on exact measure as described here:
How to model effectively using exact measurements?.

Instead of pasting all settings I uploaded the .blend here