The math behind wearing a mask can seem unintuitive at times. Minute Physics and Aatish Bhatia break it down in this illustrated video to show why wearing masks works:
The premise is that there’s a two-way effect with breathing in and breathing out. There are some assumptions here, but there’s an interactive component that lets you adjust the variables. They’ve also made the code available.