Question: calculate how much fabric i need?
Answer: Width of fabric divided by width of one piece equals the number of pieces that fit into width (rounded down to the whole number).
Total number of pieces divided by number of pieces that fit into width equals number of rows you need.