Document kit

Material Budget Solver

Takes lawn area, a list of products with coverage rates and prices, and a budget cap, then outputs a combination of products that covers the lawn within the cap.

Results print as a material list. The files open in your own spreadsheet, calendar and text programs.

Not financial, tax or accounting advice. For a money decision, ask a qualified professional.

Version 1.0.0 · Teranite Systems

$10.00 USD, one-time

Buying this pack gets you a licence to use it, not ownership of the files.

Read the full licence

Buy for $10.00

  • Download right after payment, and by email.
  • Opens in your own spreadsheet, calendar and text programs.
  • Refund within 14 days, for any reason.
  • Payment is handled by Stripe.

What it does

Takes lawn area, a list of products with coverage rates and prices, and a budget cap, then outputs a combination of products that covers the lawn within the cap. Results print as a material list. The files open in your own spreadsheet, calendar and text programs.

What's inside

  • Material Budget Solver: README.md, index.html, sample-products.json, solver.js.

With a README and the Teranite Facet Buyer Licence.

Sample

Material Budget Solver

Takes lawn area, a list of products with coverage rates and prices, and a budget cap, then outputs a combination of products that covers the lawn within the cap. Results print as a material list.

Files: README.md, index.html, sample-products.json, solver.js. solver.js, start of the file:

async function solveBudget() {
    const area = parseFloat(document.getElementById('area').value);
    const budget = parseFloat(document.getElementById('budget').value);
    const resultsDiv = document.getElementById('results');
    const errorDiv = document.getElementById('error-msg');

    resultsDiv.style.display = 'none';
    errorDiv.textContent = '';

    if (!area || !budget) {
        errorDiv.textContent = 'Please enter both area and budget.';
        return;
    }

    try {
        const response = await fetch('sample-products.json');
        const products = await response.json();

        // We want to find a combination of products that covers the area within budget.
        // Since this is a material solver for lawn care, we look for the most cost-effective
        // product that meets the coverage requirement without exceeding the budget.

        let bestOption = null;
        let lowestCost = Infinity;

        products.forEach(product => {
            const unitsNeeded = Math.ceil(area / product.coveragePerUnit);
            const totalCost = unitsNeeded * product.pricePerUnit;

            if (totalCost <= budget) {
                if (totalCo

Requirements

  • A program that opens the file types listed.
  • Checked: every file opens and parses, and any spreadsheet formulas compute in Microsoft Excel for Windows.
  • Not opened in other programs.

Install

Unzip the download, then the zip inside it. Each folder inside holds one set of files; open or import them in your own programs and work on a copy.

Licence

One licence covers one person. Your finished work is yours. Do not share or resell the files.

How it is made

Facet Packs are made with Teranite's own software tools, some of them written with help from AI, and rendered or built by standard software. They contain no AI-generated images.

Support

Questions, or a fault: support@teranitesystems.com. We reply within 2 business days.

More from Spreadsheet templates

See all