The API 2350 standard is the best available global set of rules to help bulk liquid facilities avoid overfills.
The Complete Guide to API 2350, 5th Edition, explains the standard in more detail. It helps you apply API 2350, and exemplifies with solutions using the Rosemount Tank Gauging System.