Insulation Calculator
How much insulation you need has no answer without a location, so this starts from the IECC climate zone and the prescriptive R-value minimums in the 2018 energy code. Give an attic area, whatever R is already up there and the material going in, and it returns the R-value still needed, the depth that takes, the volume of material and a bag count if you read the coverage off the bag's chart; a second mode counts batts for a framed wall after deducting the openings, and a third just shows the whole code table for your zone. The per-inch figures are published ranges, so the depth is given as a band as well as a midpoint. Editions and local amendments differ and a retrofit is usually not held to new construction minimums, so the code your building department has adopted is the one that governs.