Once you have the grains difference, multiply by the air infiltration rate and the volume of the space to get total grains per hour, then convert that to gallons per day. I use a
humidifier size calculator for that step and it does the load math for you, giving a specific unit size. A dehumidifier is the opposite, but you still size by moisture removal rate in pints per day.