Physical chemistry · The kinetic theory of gases
Gas escaping through a tiny hole, and gas striking a surface, depend on molecular speeds in a way you can calculate.