How To Calculate Tank Detention