Quick answer
Roofing Shingle Calculator: what it calculates
Roofing Shingle Calculator calculates shingle bundles from roof length, roof width and roof sections. The core method is Bundles = ceil((length x width x sections x pitch factor x (1 + waste percent)) / bundle coverage).