The formula for this calculation is A = 2πrh + 2πr^2 , where A is the total surface area, r is the radius of the cylinder's base, and h is the height.