Build a simple quote calculator with AI. Try the working example, copy the prompt, check the answers, and download the c

Build a Simple Quote Calculator With AI (No Code)

October 14, 2026

A practical beginner guide

Make your first AI project small enough to explain. Try a working cleaning estimate calculator, copy the build request, and check the answers with a simple test sheet. You will leave with a project brief and a single-file example you can open locally, without adding accounts, bookings or payments.

Get the worksheet ↓

A business owner gets the same question all the time: “Roughly how much would this cost?”

A small calculator can help answer it. Someone chooses a few details, sees how the price is worked out, and knows what still needs confirming. That is a much easier first AI project to understand than “build me an entire business app.”

This walkthrough gives you a working example, the exact instructions to ask AI for your own version, and a checklist for catching wrong answers. You do not need to understand the code to start. You do need to understand the pricing rule.

Video: The "Vibe Coding" Method: How to Build ANY Software with AI (No Code) Watch on YouTube

1. Choose one question the calculator should answer

Start with this: “What might a simple room-cleaning job cost, using these example rules?” That is the whole project.

Leave customer accounts, calendars, payments and automatic follow-up for another day. Each extra feature adds another thing to explain and check. A working small tool gives you something concrete to discuss with an owner.

For our practice business, each counted room gets the same basic task. Cleaning inside an oven or fridge is optional. The example does not handle property condition, different room types, travel, taxes or appointment availability. Those missing details matter before a real business could use it.

Write your own first sentence in this shape: “Help [person] estimate [one thing] using [the few details needed].” If you are still choosing a problem, see simple AI service ideas for local businesses. Pick the job before choosing the software.

2. Write the price rule before you ask AI to build

Our made-up rule is: rooms × room rate, plus the chosen extras, with an $80 minimum. All amounts are USD teaching examples. They are not suggested cleaning rates.

The complete rules for this practice calculator
DetailExample ruleWhy write it down?
RoomsA whole number from 1 to 20A blank, negative or half room should not produce a price.
Price per roomDefault $30; editable from $0.01 to $500.00The limits keep this example within its stated scope.
Inside ovenAdd $25 once when selectedDo not add it once per room.
Inside fridgeAdd $20 once when selectedUnselected extras cost $0.
MinimumThe final estimate cannot be below $80The minimum replaces a lower subtotal; it is not an extra $80 fee.
MoneyAccept at most two decimal placesThe result should show dollars and cents consistently.

For three rooms and an oven: 3 × $30 + $25 = $115. Because $115 is above the minimum, it stays $115. For one room with no extras, the $30 subtotal becomes an $80 estimate. The breakdown should explain the $50 minimum adjustment.

This is the part you should settle with a real owner. AI cannot decide what a business includes in its price. If your rule feels unclear on paper, a nicer screen will not fix it.

3. Try the finished example

Start with the default three rooms. Then choose the oven. Finally, try one room with no extras and watch the minimum take effect. The calculator keeps the details in your browser; it has no customer form or connection that submits them.

Try the finished example

A small cleaning estimate calculator

Fictional teaching prices in USD. This example does not collect personal details, send a request, book a visit, or take payment.

The ruleRooms × room rate + selected extras, with an $80 minimum.
Use a whole number from 1 to 20.
Example only: $0.01 to $500.00.
Optional extras

Start with 3 rooms at $30 each, or change the example details.

Notice the useful part of the result: you can see the room charge, selected extras and any minimum adjustment. A mysterious total gives someone less information than a short, readable breakdown.

The price-per-room field is editable so you can practice different rules. On a real customer-facing version, the owner would usually control that rate rather than asking the customer to choose it. You would also decide whether unusual jobs should receive a manual estimate instead.

4. Give AI a clear build request

A prompt is simply the instruction you give AI. The useful instruction includes what the tool does, the exact arithmetic, what it must refuse, and what it must leave out.

Copy the request below into an AI coding tool you already use. Ask for a working preview. The downloadable source on this page is also a complete example you can open and compare against; you do not need to buy anything to try it.

Build one small cleaning estimate calculator as a single HTML file with its CSS and JavaScript included. It must open locally in a browser without external libraries, remote requests, sign-in or a server.

Label all prices as fictional USD teaching examples. This is an estimate, not a booking, invoice or payment page.

Fields:
- Rooms: required whole number from 1 to 20. Default 3.
- Price per room: required $0.01 to $500.00, maximum two decimal places. Default $30.
- Optional checkboxes: inside oven +$25; inside fridge +$20. Both start unchecked.

Rule: subtotal = rooms multiplied by price per room, plus each selected extra once. Final estimate = the greater of subtotal or $80. Show each charge and any adjustment needed to reach the $80 minimum. Use integer cents for money calculations.

Reject blanks, negatives, zero rooms, fractional rooms, rates outside the stated range, rates with more than two decimal places, non-finite numbers and invalid text. Never turn an empty field into zero. When details change, hide the previous estimate until Calculate is chosen again.

Use visible labels, field-specific plain-English errors, keyboard-operable controls, visible focus and a readable status message when a result changes. Include Calculate and Reset buttons. Reset must restore defaults and clear the old result. Make it fit a phone screen.

Do not collect names, email addresses or phone numbers. Do not add payments, bookings, tracking, saved customer data or online services.

Before finishing, check: 3 rooms at $30 = $90; add oven = $115; add both extras = $135; 1 room at $30 with no extras = $80; 3 rooms at $30.25 with both extras = $135.75. Explain how I can test the invalid inputs too.

Ask AI to describe where the prices and minimum are set. You should be able to point to those settings and explain the rule in ordinary words. “The AI picked it” is not a pricing policy.

5. Check the answers before changing the design

Use the same examples every time AI changes the tool. Calculate the expected answer yourself first. Then compare the screen. This catches a tool that looks finished but adds the minimum twice or charges an extra for every room.

Repeatable tests with fictional prices
Try thisExpected resultWhat it checks
3 rooms, $30, no extras$90.00Basic multiplication
3 rooms, $30, oven only$115.00One extra charged once
3 rooms, $30, both extras$135.00Both additions
1 room, $30, no extras$80.00; $50 adjustmentMinimum applied correctly
2 rooms, $40, no extras$80.00; no adjustmentExactly at the minimum
3 rooms, $30.25, both extras$135.75Cents stay accurate
Blank rooms or blank rateExplain the missing detail; no estimateEmpty does not mean zero
0, -1, 2.5 or 21 roomsAsk for a whole number from 1 to 20Room limits
$0, -$1, $500.01 or $30.255 rateExplain the allowed rate; no estimatePrice limits and decimal places
Change a detail after calculatingOld estimate disappearsNo stale answer
Choose Reset after an errorDefaults return; error and result clearA fresh starting point

The included version has automated checks for arithmetic, limits and invalid values. That does not replace trying it in a browser. Tab through every control, calculate without a mouse, enlarge the text, and check the phone layout. Screen-reader testing and testing in the business’s actual environment are separate checks.

Ask for one repair at a time: “One room at $30 should show $80, but this version shows $110. Fix the minimum rule without changing the other prices. Recheck the examples.” A specific failed example is easier to act on than “make it better.”

6. Make the instructions as clear as the arithmetic

Keep the field names visible. A person should not have to remember a label that disappears when they type. Associate each label with its input, following the W3C guidance on labeling controls.

When something is wrong, say which detail needs fixing. “Enter a whole number of rooms from 1 to 20” is useful. “Invalid input” leaves the person guessing. The W3C guide to form notifications also explains making changes available to assistive technology. A live status message helps announce a result without relying only on its position or color.

HTML offers controls for required values, ranges and decimal steps; MDN documents number-input constraints. The example also checks the values before doing the calculation. If a later version sends information to a server, validate it there too. The W3C validation guide explains why browser checks alone are not a security boundary.

7. Show the rule to an owner before adding more features

Use this introduction: “I made a practice estimate calculator. The numbers are placeholders. Could you tell me whether these are the right questions for a customer?”

Then ask four things: What counts as a room? Which work belongs in the base price? Which jobs always need a personal review? What should a customer do after seeing an estimate?

You might discover that room count is the wrong starting point. The owner may use property size, condition or a visit instead. That is useful feedback. Change the brief before building more screens.

A calculator project and an ongoing service are different offers. If someone asks you to maintain it, agree separately on changes, checks and support. See what to include in a monthly AI service. Nothing in this practice example establishes a fair client price or promises a sale.

Take the brief and the working file

Download the project brief to adapt the rules. Download the single-file calculator to open the original example locally. It includes the design and calculation code, so it does not need an account or an internet connection for its arithmetic.

Your next useful step is small: change one clearly written rule, update the expected answer, and check that the calculator follows it. Keep the working example until a real owner has helped you decide what should change.

Questions beginners ask

Does the finished calculator need AI for every estimate?

No. This version follows a fixed formula in the browser. AI helps create or revise it; the arithmetic does not call an AI service.

Can I use these prices for a cleaning company?

They are fictional practice amounts. An owner needs to supply and approve actual rules, included work and any extra charges before customer use.

Can I add a name field and a booking button?

That would be a separate project step. Decide where information goes, how it is handled, who receives it and what confirms a booking. This example does none of those jobs.

Do I need to buy MakerAI to try this?

No. The example and downloads on this page stand on their own. MakerAI is an optional planning product.

Keep your next step

Save the worksheet

Keep the plan, the checks, and the next action in one place. This is an original learning aid, not a record of customer results.

Read the blank worksheet
MY FIRST QUOTE CALCULATOR, PROJECT BRIEF
Original educational worksheet. No customer data is needed for practice.

1. THE ONE JOB
Help [person] estimate [one thing] using [details needed].
Who confirmed this is useful?
What do they do now?

2. PRACTICE RULES
All sample prices below are fictional USD amounts, not market rates.
Rooms: whole number 1-20. Default 3.
Rate per room: $0.01-$500.00, maximum two decimals. Default $30.
Inside oven: optional +$25 once.
Inside fridge: optional +$20 once.
Subtotal = rooms × rate + chosen extras.
Final example estimate = the greater of subtotal or $80.
Show any adjustment needed to reach the minimum.
Calculate in integer cents. Show currency to two decimals.

3. MY APPROVED RULES
What counts as one unit?
Work included:
Work excluded:
Price source / owner:
Base rate and date approved:
Extras and how often charged:
Minimum (replacement floor, not additional fee):
Limits and cases requiring manual review:
Taxes / travel / other charges treatment:
How long is the estimate valid?
What happens next? (An estimate is not a booking or payment.)

4. INPUTS AND ANSWERS
Field | Plain-English label | Allowed range | Default | Error message

5. COPYABLE BUILD REQUEST
Build one small estimate calculator as a single HTML file with CSS and
JavaScript included. It must open locally without external libraries,
remote requests, sign-in or a server. Use the practice rules in section2.
Use visible labels, field-specific errors, keyboard controls, visible
focus, a readable result/status, Calculate and Reset buttons, and a phone
layout. Reject blank, negative, non-finite, out-of-range and incorrectly
formatted inputs. Do not turn empty fields into zero. Hide an old result
when any detail changes. Reset restores defaults and clears errors/results.
Do not add customer data collection, storage, tracking, bookings, payments
or online services. Label the output as a fictional example estimate.
Run the tests below and explain any failed answer.

6. TEST RECORD
Case | Expected | Actual | Pass/fail | Date
3 rooms × $30, no extras | $90.00
3 rooms × $30 + oven | $115.00
3 rooms × $30 + both extras | $135.00
1 room × $30, no extras | $80.00 ($50 adjustment)
2 rooms × $40, no extras | $80.00 (no adjustment)
3 rooms × $30.25 + both extras | $135.75
Blank rooms / rate | Field error; no estimate
0 / -1 / 2.5 / 21 rooms | Field error; no estimate
$0 / -$1 / $500.01 / $30.255 rate | Field error; no estimate
Non-finite numbers / invalid text | Field error; no estimate
Change a detail after Calculate | Previous result hidden
Reset after error or result | Defaults restored; old result/errors clear
Keyboard only | All controls reachable; submit/reset usable; focus visible
Phone layout / enlarged text | Controls and result remain readable
Assistive technology | Labels, errors and new result understandable

7. BEFORE REAL CUSTOMER USE
Owner has approved the complete rules and wording:
Edge cases and manual-review route agreed:
Actual hosting/environment tested:
Data and server checks added if information will be sent:
Support / changes / responsibility agreed:
Approval record and remaining issues:

This worksheet does not certify a live deployment, accessibility compliance,
customer demand, a price, a booking, payment, income or a business result.
Read the calculator HTML source
<!doctype html>
<html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><meta name="robots" content="noindex,nofollow"><title>Practice Cleaning Estimate Calculator</title><meta name="description" content="A local educational estimate calculator with fictional prices, clear rules, itemized results and input checks."><style>body{margin:0;background:#f4efe4;color:#222820;font:1rem/1.6 system-ui,sans-serif}main{max-width:900px;margin:auto;padding:1.5rem 1rem}header{max-width:780px;margin:0 auto}header h1{font:700 clamp(1.8rem,5vw,2.8rem)/1.15 Georgia,serif}header p{color:#53594f}.jm-quote{--qc-ink:#222820;--qc-gold:#d6ae55;--qc-muted:#5b6159;max-width:780px;margin:2rem auto;padding:clamp(1.1rem,3vw,2rem);border:1px solid #d8cebb;border-radius:20px;background:#fbf8f0;color:var(--qc-ink);font:400 1rem/1.6 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;box-sizing:border-box}.jm-quote *{box-sizing:border-box}.jm-quote [hidden]{display:none!important}.jm-quote-kicker{font-size:.78rem;letter-spacing:.1em;text-transform:uppercase;font-weight:750;color:#5c4b22}.jm-quote h3{font:750 clamp(1.4rem,3.5vw,2rem)/1.2 Georgia,serif;margin:.4rem 0 1rem}.jm-quote h4{font-size:1.12rem;margin:0 0 1rem}.jm-quote p{margin:.6rem 0 1rem}.jm-quote-rule{display:flex;flex-wrap:wrap;gap:.3rem .8rem;padding:.9rem 1rem;border-left:4px solid var(--qc-gold);background:#f0e8d5;margin:1.3rem 0}.jm-quote-fields{display:grid;grid-template-columns:1fr 1fr;gap:1.2rem}.jm-quote label.jm-quote legend{display:block;font-weight:700}.jm-quote input[type=number]{display:block;width:100%;min-height:48px;margin:.4rem 0;padding:.6rem .8rem;border:1px solid #747a6e;border-radius:8px;background:white;color:var(--qc-ink);font:inherit}.jm-quote small{display:block;color:var(--qc-muted);font-size:.85rem}.jm-quote fieldset{margin:1.2rem 0;border:1px solid #c8c1b3;border-radius:10px;padding:.5rem 1rem 1rem;min-width:0}.jm-quote legend{padding:0 .4rem}.jm-quote-choice{display:flex!important;align-items:center;gap:.7rem;min-height:48px;padding:.5rem 0;font-weight:500!important;cursor:pointer}.jm-quote-choice input{width:22px;height:22px;flex:0 0 auto;accent-color:#303a28}.jm-quote-choice span{display:flex;flex-wrap:wrap;gap:.3rem .6rem}.jm-quote-actions{display:flex;flex-wrap:wrap;gap:.7rem}.jm-quote button{font:700 .95rem/1.35 system-ui,sans-serif;min-height:48px;padding:.8rem 1rem;border:2px solid #293123;border-radius:8px;background:#293123;color:white;cursor:pointer}.jm-quote button:hover{background:#414e37}.jm-quote button.jm-quote-reset{background:transparent;color:#293123}.jm-quote button.jm-quote-reset:hover{background:#ede6d6}.jm-quote :focus-visible{outline:3px solid #165aa3;outline-offset:3px}.jm-quote [aria-invalid=true]{border-color:#a32121!important}.jm-quote-error{display:block;min-height:.2rem;color:#922525;font-size:.87rem;font-weight:650}.jm-quote-status{color:var(--qc-muted);font-size:.93rem;min-height:1.5em}.jm-quote-result{margin-top:1rem;padding:1.2rem;background:white;border:1px solid #d0c9bc;border-radius:12px}.jm-quote-result ul{list-style:none;margin:0;padding:0}.jm-quote-result li{display:flex;justify-content:space-between;gap:1rem;padding:.65rem 0;border-bottom:1px solid #e5e1d9}.jm-quote-result li strong{white-space:nowrap}.jm-quote-total{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem;font-weight:750;font-size:1.2rem;padding-top:.6rem}.jm-quote-total strong{font-size:1.8rem}.jm-quote-footnote{color:var(--qc-muted);font-size:.86rem}.jm-quote noscript{color:#922525}@media(max-width:520px){.jm-quote-fields{grid-template-columns:1fr;gap:1rem}.jm-quote-actions{display:grid;grid-template-columns:1fr}.jm-quote button{width:100%}.jm-quote-result{padding:.9rem}.jm-quote-result li{font-size:.9rem;gap:.5rem}}@media print{.jm-quote button.jm-quote-status{display:none}.jm-quote{box-shadow:none;break-inside:avoid}.jm-quote-result{border-color:#777}}
</style></head><body><main><header><h1>Try one simple estimate calculator</h1><p>Original educational example. All prices are fictional USD teaching amounts. This file runs locally without a server, account or remote request.</p></header><section class="jm-quote" data-quote-calculator aria-labelledby="jm-quote-title">
  <div class="jm-quote-heading"><span class="jm-quote-kicker">Try the finished example</span><h2 id="jm-quote-title">A small cleaning estimate calculator</h2><p id="jm-quote-scope">Fictional teaching prices in USD. This example does not collect personal details, send a request, book a visit, or take payment.</p></div>
  <div class="jm-quote-rule"><strong>The rule</strong><span>Rooms × room rate + selected extras, with an $80 minimum.</span></div>
  <form data-qc-form novalidate aria-describedby="jm-quote-scope">
    <div class="jm-quote-fields">
      <div><label for="jm-quote-rooms">Number of rooms</label><input id="jm-quote-rooms" name="rooms" type="number" min="1" max="20" step="1" value="3" required inputmode="numeric" aria-describedby="jm-quote-rooms-help jm-quote-rooms-error"><small id="jm-quote-rooms-help">Use a whole number from 1 to 20.</small><span class="jm-quote-error" id="jm-quote-rooms-error" data-qc-error="rooms"></span></div>
      <div><label for="jm-quote-rate">Price per room (USD)</label><input id="jm-quote-rate" name="rate" type="number" min="0.01" max="500" step="0.01" value="30" required inputmode="decimal" aria-describedby="jm-quote-rate-help jm-quote-rate-error"><small id="jm-quote-rate-help">Example only: $0.01 to $500.00.</small><span class="jm-quote-error" id="jm-quote-rate-error" data-qc-error="rate"></span></div>
    </div>
    <fieldset><legend>Optional extras</legend><label class="jm-quote-choice"><input name="oven" type="checkbox" aria-describedby="jm-quote-extras-error"><span>Clean inside oven <strong>+ $25</strong></span></label><label class="jm-quote-choice"><input name="fridge" type="checkbox" aria-describedby="jm-quote-extras-error"><span>Clean inside fridge <strong>+ $20</strong></span></label><span class="jm-quote-error" id="jm-quote-extras-error" data-qc-error="extras"></span></fieldset>
    <div class="jm-quote-actions"><button type="submit">Calculate example estimate</button><button type="reset" class="jm-quote-reset">Reset example</button></div>
  </form>
  <p class="jm-quote-status" data-qc-status role="status" aria-live="polite" aria-atomic="true">Start with 3 rooms at $30 each, or change the example details.</p>
  <div class="jm-quote-result" data-qc-result hidden><h4>Your example breakdown</h4><ul data-qc-lines></ul><p class="jm-quote-total"><span>Example total</span><strong data-qc-total></strong></p><p class="jm-quote-footnote">Estimate only. A real provider would confirm the property, included work, availability and any applicable taxes or other charges separately.</p></div>
  <noscript><p>This calculator needs JavaScript. You can still follow the worked examples in the article and download the project brief.</p></noscript>
</section>
</main><script>(function (root) {
  'use strict';

  // Teaching prices, in USD cents. These are not cleaning-market rates.
  const RULES = Object.freeze({ minimumCents: 8000, ovenCents: 2500, fridgeCents: 2000, maxRooms: 20, maxRateCents: 50000 });
  function money(cents) {
    if (!Number.isSafeInteger(cents) || cents < 0) throw new RangeError('Use non-negative integer cents.');
    return new Intl.NumberFormat('en-US', { style: 'currency', currency: 'USD' }).format(cents / 100);
  }
  function cleanNumber(value) {
    if (typeof value === 'number') return Number.isFinite(value) ? String(value) : '';
    return typeof value === 'string' ? value.trim() : '';
  }
  function validateQuote(input) {
    const data = input && typeof input === 'object' ? input : {};
    const errors = {};
    const roomText = cleanNumber(data.rooms);
    const rateText = cleanNumber(data.rate);
    const rooms = Number(roomText);
    if (!/^\d+$/.test(roomText) || !Number.isSafeInteger(rooms) || rooms < 1 || rooms > RULES.maxRooms) {
      errors.rooms = 'Enter a whole number of rooms from 1 to 20.';
    }
    let rateCents = 0;
    if (/^\d+(?:\.\d{1,2})?$/.test(rateText)) {
      const parts = rateText.split('.');
      rateCents = Number(parts[0]) * 100 + Number((parts[1] || '').padEnd(2, '0'));
    }
    if (!/^\d+(?:\.\d{1,2})?$/.test(rateText) || !Number.isSafeInteger(rateCents) || rateCents < 1 || rateCents > RULES.maxRateCents) {
      errors.rate = 'Enter a rate from $0.01 to $500.00, using at most two decimal places.';
    }
    if (typeof data.oven !== 'boolean' || typeof data.fridge !== 'boolean') {
      errors.extras = 'Choose extras using the two checkboxes.';
    }
    return Object.keys(errors).length ? { ok: false, errors: errors } : {
      ok: true, value: { rooms: rooms, rateCents: rateCents, oven: data.oven, fridge: data.fridge }
    };
  }
  function calculateQuote(input) {
    const validated = validateQuote(input);
    if (!validated.ok) return validated;
    const value = validated.value;
    const roomCents = value.rooms * value.rateCents;
    const ovenCents = value.oven ? RULES.ovenCents : 0;
    const fridgeCents = value.fridge ? RULES.fridgeCents : 0;
    const subtotalCents = roomCents + ovenCents + fridgeCents;
    const adjustmentCents = Math.max(0, RULES.minimumCents - subtotalCents);
    return { ok: true, rooms: value.rooms, rateCents: value.rateCents, roomCents: roomCents,
      ovenCents: ovenCents, fridgeCents: fridgeCents, subtotalCents: subtotalCents,
      minimumCents: RULES.minimumCents, adjustmentCents: adjustmentCents,
      totalCents: subtotalCents + adjustmentCents };
  }
  function mount(container) {
    if (container.dataset.qcMounted === 'true') return;
    container.dataset.qcMounted = 'true';
    const form = container.querySelector('[data-qc-form]');
    if (!form) return;
    const rooms = form.elements.namedItem('rooms');
    const rate = form.elements.namedItem('rate');
    const oven = form.elements.namedItem('oven');
    const fridge = form.elements.namedItem('fridge');
    const status = container.querySelector('[data-qc-status]');
    const result = container.querySelector('[data-qc-result]');
    const lines = container.querySelector('[data-qc-lines]');
    function clearErrors() {
      [rooms, rate, oven, fridge].forEach(function (field) { field.removeAttribute('aria-invalid'); });
      container.querySelectorAll('[data-qc-error]').forEach(function (node) { node.textContent = ''; });
    }
    function clearResult(message) {
      result.hidden = true;
      lines.replaceChildren();
      container.querySelector('[data-qc-total]').textContent = '';
      status.textContent = message;
    }
    function line(label, cents) {
      const item = document.createElement('li');
      const name = document.createElement('span');
      const amount = document.createElement('strong');
      name.textContent = label;
      amount.textContent = money(cents);
      item.append(name, amount);
      lines.append(item);
    }
    form.addEventListener('submit', function (event) {
      event.preventDefault();
      clearErrors();
      clearResult('');
      const quote = calculateQuote({ rooms: rooms.value, rate: rate.value, oven: oven.checked, fridge: fridge.checked });
      if (!quote.ok) {
        Object.keys(quote.errors).forEach(function (key) {
          const error = container.querySelector('[data-qc-error="' + key + '"]');
          if (error) error.textContent = quote.errors[key];
          if (key === 'extras') { oven.setAttribute('aria-invalid', 'true'); fridge.setAttribute('aria-invalid', 'true'); }
          else form.elements.namedItem(key).setAttribute('aria-invalid', 'true');
        });
        status.textContent = 'Check the highlighted fields. No estimate has been calculated.';
        (quote.errors.rooms ? rooms : quote.errors.rate ? rate : oven).focus();
        return;
      }
      line(quote.rooms + (quote.rooms === 1 ? ' room' : ' rooms') + ' × ' + money(quote.rateCents), quote.roomCents);
      line('Inside oven' + (quote.ovenCents ? '' : ', not selected'), quote.ovenCents);
      line('Inside fridge' + (quote.fridgeCents ? '' : ', not selected'), quote.fridgeCents);
      if (quote.adjustmentCents > 0) line('Minimum-job adjustment', quote.adjustmentCents);
      container.querySelector('[data-qc-total]').textContent = money(quote.totalCents);
      result.hidden = false;
      status.textContent = 'Example estimate: ' + money(quote.totalCents) + '. The itemized breakdown is below. This does not book or charge anyone.';
    });
    form.addEventListener('input', function () {
      clearErrors();
      clearResult('Details changed. Choose Calculate example estimate to see the new total.');
    });
    form.addEventListener('reset', function () {
      clearErrors();
      clearResult('Example reset: 3 rooms at $30 per room, with no extras. Calculate to see the total.');
    });
  }
  const api = { rules: RULES, validateQuote: validateQuote, calculateQuote: calculateQuote, formatMoney: money, mount: mount };
  if (typeof module !== 'undefined' && module.exports) module.exports = api;
  if (root) root.JMQuoteCalculator = api;
  if (typeof document !== 'undefined') {
    const start = function () { document.querySelectorAll('[data-quote-calculator]').forEach(mount); };
    if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', start, { once: true });
    else start();
  }
})(typeof globalThis !== 'undefined' ? globalThis : this);
</script></body></html>

Sources and what was checked

Product facts come from the dated primary sources below. Examples, prompts, diagrams, and worksheets are original editorial work. No new account, real referral, payout, customer delivery, or social publishing test was performed.

  1. MakerAI public product pageChecked 2026-10-12 · Primary documentation
  2. W3C WAI: Labeling ControlsChecked 2026-10-12 · Primary documentation
  3. W3C WAI: Validating InputChecked 2026-10-12 · Primary documentation
  4. W3C WAI: User NotificationChecked 2026-10-12 · Primary documentation
  5. MDN: number inputChecked 2026-10-12 · Primary documentation

Frequently asked questions

Can AI build a working quote calculator?

Yes. AI tools can build a calculator from a clear description of the inputs, prices, and rules. You still need to check the math.

How do I test the calculator's math?

Run real past jobs through it and compare the result with the quote that was actually sent. Test edge cases like zero and very large values.

Where do I put the calculator on a site?

Place it on a service page or a dedicated quote page, near the call to action, and make sure the result leads to a contact form.

Learn one thing. Use it.

Practical beginner guides from Jonathan Montoya.

Back to Blog

See an AI agent team work live

AIM Agent is an AI Chief of Staff for business owners. You give it a real task, and it brings the work back for you to review. I am a co-founder of AIM Agent and have a financial interest in the product.

Get one AI build idea each week

New guides and one simple idea you can try. Short, clear and free.

One email a week. Unsubscribe any time.