Skip to content
Applied Commons
Applied Commons blog

Claude and ChatGPT · Building tools · Field guide

Prototype a quote calculator with Claude or ChatGPT

Before you pay for a quoting app, test the arithmetic with a tiny spreadsheet. An assistant can draft the formula. Three hand-calculated jobs tell you whether it deserves your trust.

Specify one pricing rule

For this exercise, a job costs $80 plus $25 per hour, with a $130 minimum. Put hours in A2 and the estimated price in B2. Write down which cases you want to reject: a blank cell, negative hours and text. Zero is a valid number in this example.

Request the formula

Paste the prompt below into Claude or ChatGPT. The working part should be equivalent to MAX(130,80+25*A2). That alone will not handle blank or invalid inputs. Ask the assistant to explain those checks before you paste its formula into a copy of your sheet.

Prompt to try

Write a Google Sheets formula for B2. A2 is hours. Return blank for a blank cell and “Check hours” for text or negative numbers. Otherwise use a base fee of 80 plus 25 per hour, with a minimum of 130. Explain each condition and give expected results for 0, 2 and 4 hours.

Run three acceptance tests

At zero hours the minimum gives $130. Two hours also gives $130, right on the boundary. Four hours gives $180. Now clear the cell and try minus one. Neither should silently return a usable quote. Fix any mismatch before adding another pricing rule.

Decide what belongs in a real quote

Try one completed job whose accepted price you know. A difference may point to travel time, materials or a negotiated discount. Add one explicit rule at a time and rerun the earlier tests. Keep approval with the person who sends the quote.

Browse more articles →