Browsing through some plumbing forums about pressure tanks and someone replied with this... (I should start off by mentioning it's a 40 gallon tank)
"At 2.5 GPM, your 2-3 minutes of shower time between cycles is using between 5 and 7.5 gallons. If your tank starts at 60psi and 7.5 gallons is enough to bring it down to 40psi, that means you're starting out with 15 gallons of air in your 40 gallon tank, and ending the 3-minute cycle with 22.5 gallons of air. I calculated this using Boyle's law, or P1 * V1 = P2 * V2. And of course these numbers would be different if your shower head is higher-flow and your 3 minutes of showering used more than 7.5 gallons."
Now I've wrapped my head around this for a while, but I don't see where 22.5 and 15 gallons of air come from. I feel like a piece was left out in this explanation. This is obviously not homework (well it's housework). Does anyone see what's I'm failing to?
Suppose the original amount of space the air took up (at $60$ PSI) was $V$ gallons. You then remove $7.5$ gallons of water from the tank and the air pressure goes to $40$ PSI, which means that the air in the tank must take up $V+7.5$ gallons at $40$ PSI. So (assuming that the tank is airtight, the temperature does not change, no water flows into the tank, and these are absolute pressures rather than gauge pressures) Boyle's law says that $$ 60V=40(V+7.5) $$ Solving this equation, we have $$ 20V=40(7.5)\\ V=2(7.5)=15 $$ and so the air initially took up $15$ gallons of the tank.