{"product_id":"bioretention-soil-1-cubic-yard","title":"Bioretention Soil (1 Cubic Yard)","description":"\u003cp\u003e1 Cubic Yard of Maryland State Certified Bioretention Soil is designed specifically to absorb, infiltrate, and filter stormwater runoff into the ground where it can safely recharge our groundwater systems and reduce surface flooding. Other industry names used are Bio-Soil, Stormwater Soil, Filter Media, Amended Soil, Engineered Soil. \u003c\/p\u003e\n\n\u003ctitle\u003eSoil Calculator\u003c\/title\u003e\n\n\n\n\u003ch2\u003eSoil Calculator\u003c\/h2\u003e\n\n\u003cp\u003eEnter the dimensions of the area you want to fill:\u003c\/p\u003e\n\n\u003clabel for=\"length\"\u003eLength (feet):\u003c\/label\u003e\n\u003cinput type=\"number\" id=\"length\" name=\"length\"\u003e\u003cbr\u003e\u003cbr\u003e\n\n\u003clabel for=\"width\"\u003eWidth (feet):\u003c\/label\u003e\n\u003cinput type=\"number\" id=\"width\" name=\"width\"\u003e\u003cbr\u003e\u003cbr\u003e\n\n\u003clabel for=\"depth\"\u003eDepth (inches):\u003c\/label\u003e\n\u003cinput type=\"number\" id=\"depth\" name=\"depth\"\u003e\u003cbr\u003e\u003cbr\u003e\n\n\u003cbutton onclick=\"calculateMulch()\"\u003eCalculate\u003c\/button\u003e\n\n\u003cp id=\"result\"\u003e\u003c\/p\u003e\n\n\u003cscript\u003e\nfunction calculateMulch() {\n    let length = parseFloat(document.getElementById(\"length\").value);\n    let width = parseFloat(document.getElementById(\"width\").value);\n    let depth = parseFloat(document.getElementById(\"depth\").value);\n\n    if (isNaN(length) || isNaN(width) || isNaN(depth) || length \u003c= 0 || width \u003c= 0 || depth \u003c= 0) {\n        document.getElementById(\"result\").innerHTML = \"Please enter valid dimensions.\";\n        return;\n    }\n\n    \/\/ 1 cubic yard = 324 square feet at 1 inch depth\n    let squareFeet = length * width;\n    let depthInches = depth \/ 12; \/\/ Convert inches to feet\n    let cubicYards = (squareFeet * depthInches) \/ 27;\n    let cubicFeet = cubicYards * 27;\n    let onefivecubicFeet = cubicFeet \/ 1.5;\n\n    document.getElementById(\"result\").innerHTML = \"You need \" + cubicYards.toFixed(2) + \" Cubic Yards of Soil. \" \n}\n\u003c\/script\u003e","brand":"Denchfield Nursery, Inc.","offers":[{"title":"Default Title","offer_id":43779437199603,"sku":"","price":95.0,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0370\/5431\/6676\/files\/Biosoil.jpg?v=1684780354","url":"https:\/\/donchfieldnursery.shop\/products\/bioretention-soil-1-cubic-yard","provider":"Denchfield Nursery, Inc.","version":"1.0","type":"link"}