function and parameter created to calculate the volume of a bathtub