The judicial challenge took more than 40 years but succeeded in bringing the Bangladesh customs law and practice in determining liquid bulk cargo quantity outturn in line with the Indian law and practice thus recognizing a 1% transit loss allowance and joint ullage surveys rather than shore tank measurements as the basis for shortage penalties .