zulu4
This is a transient thing, i.e. things change with time, hence there is no simple formula.
The programs that do this can be complex.
Alternatively you can spread sheet this and just choose a suitable time period when things don't change very much ( say pressure doesn't change by more than 5%) and asusme steady state conditions for that time period.
As my fellow poster above notes, assuming you're venting into atmospheric conditions, any pressure more than 1 barg will be choked flow.
So velocity is fixed, but mass flow rate varies with pressure.
So calulae how much mass you have in your vessel at time =0. calcualte how much leaves in say 30 seconds. That mass or volume then reduces the pressure by a certain amount. Subtract that from your start mass and repeat until pressure gets down to whatever you want or less than 1 bar you need to move to non choked flow.
The trick is to konw when to stop and the time period as this will be an exponential decay.
Remember - More details = better answers
Also: If you get a response it's polite to respond to it.