Question: how to calculate water volume of a roof?
Answer: Take the dimensions of the footprint of your roof and convert them to inches. (So, a 50' x 20' roof is 600" x 240".)
Multiply the roof dimensions by the number of inches of rainfall. ... 
Divide by 231 to get the number of gallons (because 1 gallon = 231 cubic inches).