Text this: An Implicit Formulation for Calculating Final Conditions in Drainage Maneuvers in Pressurized Water Installations