If the gas is ideal, both the initial ( T i , P i , V i ) and final ( T f , P f , V f ) conditions follow the Ideal Gas Law, so that initially P i V i = n R T i and then, after the tap is opened, P f V f = n R T f .