Skip to main content
Clever Ops

Case studyReal job

How we built a mortgage broker site with seven calculators

We built a custom website for a mortgage broker: pages for home, commercial and developer lending, seven calculators, a rates page that refreshes daily, guides and suburb pages.

  • Next.jsThe website
  • VercelHosting and nightly jobs
  • UpstashThe Redis cache
  • ResendEnquiry emails
  • TwilioEnquiry texts

Transcript

This is a stamp duty calculator on a website we built for a mortgage broker in Australia, running here on sample figures. Drag the price and the answer keeps up. The slow part was worked out overnight, so the page isn't waiting on anyone.

The broker came to us through the form on our website. Their site was getting old, and they'd just taken on commercial and developer lending, which it had no place for. They wanted a site built to bring in enquiries, with calculators people would actually use.

Their calculators came with a subscription, and they didn't own any of that code. And the rules behind stamp duty and borrowing change with state budgets and lender policy, so we couldn't just write our own copies and walk away.

Credit is regulated, too. Every rate and claim on the site had to be right, and set out the way the advertising checklist from the broker's licensee asks.

Here's what we built. Pages for home, commercial and developer lending. Seven calculators: repayments, borrowing power, buying power, stamp duty, mortgage insurance, loan comparison and refinance. A rates page that refreshes each day, guides, and suburb pages. It's a custom Next.js site, hosted on Vercel.

Each suburb is a short entry of data: a name, its neighbours and the kinds of loan it's listed under. One template turns it into a page for each kind of loan. The suburb names you're seeing are made up.

Every enquiry form emails the broker and sends them a text, and the person enquiring gets a confirmation. Each calculator also offers to email people their results. From there it's the broker's job. They make the call back and give the advice. The site sticks to general information.

Now the detail. Stamp duty, buying power and refinance run on data from a lender data service the broker subscribes to. Asked live, each answer took a few seconds. That's too slow for a slider.

So each night, scheduled jobs on Vercel ask the most common questions ahead of time and store the answers in a Redis cache. The pages read from the cache. Inputs are rounded into bands, so nearby inputs share one stored answer. Anything outside those is asked live once, then stored for the next person. The jobs run one after another in the early hours, a batch at a time.

Each night's answers are filed under that day's rates, so the old ones drop out without anyone clearing them. If a night is missed, entries expire rather than sit there going stale.

Stamp duty went a step further. For each kind of buyer, we sample the duty across a range of prices, keep only the points where the line bends, and send those to the browser. The browser reads between the points, so moving the slider doesn't touch a server. A copy of those curves lives with the code, in case a night's data is missing.

Repayments, borrowing power and loan comparison run on our own maths in the browser. Rates refresh daily. Commercial and SMSF rates are the home loan rate plus a margin the broker chose, and they're labelled indicative.

For the copy, we worked from the licensee's advertising checklist. The comparison rate shows at the same size as the headline rate, and the warning is in bold, on residential pages only. Then the broker read every page and left notes right on it, over several rounds, before launch.

Some claims carry a date, like a grant with an end date. Each one sits in a register with the file it's in, the source to check and a review-by date. The register doesn't send alerts. A person works through it on those dates.

It went live on the broker's own domain in July 2026. We didn't measure enquiries before and after, so there's no result to show you here.

If you're a broker and your calculators are slow, or your rates and claims are hard to keep current, get in touch.

Three of the calculators run on answers worked out overnight from a lender data service the broker subscribes to, stored in a cache, so they answer straight away. The copy was worked against the broker's licensee's advertising checklist and read by the broker page by page before launch. The site gives general information, not advice.

How and why they came

The enquiry came through the form on our website. The broker's site was getting old, and they'd just taken on commercial and developer lending, which the site had no place for. They wanted a site built to bring in enquiries, with calculators people would actually use, and pages for the suburbs they work in.

The problem

The calculators on the old site came with a subscription, and the broker didn't own any of that code.

Writing our own copies wasn't the safe answer for all of them. Stamp duty and borrowing depend on state rules and lender policy, and those change with state budgets and lender updates.

Credit is regulated. Every rate and claim had to be right, and set out the way the advertising checklist from the broker's licensee asks.

What we built

  1. 1

    Pages for each kind of lending

    Home loans, commercial loans, developer finance and SMSF loans, plus guides and a page for each state's stamp duty.

  2. 2
    VercelUpstash

    Seven calculators

    Repayments, borrowing power, buying power, stamp duty, mortgage insurance, loan comparison and refinance. Repayments, borrowing power and loan comparison run on our own maths in the browser. Stamp duty, buying power and refinance draw on the data service, worked out overnight and cached.

  3. 3
    VercelUpstash

    Rates

    A rates page that refreshes daily from the same account. Commercial and SMSF rates are the home loan rate plus a margin the broker chose, and they're labelled indicative.

  4. 4

    Suburb pages

    Each suburb is a short data entry: its name, its neighbours and the kinds of loan it's listed under. One template turns it into a page for each of those loans. Suburbs that only carry the basic entry stay out of search results until they're written up properly.

  5. 5
    ResendTwilio

    Enquiries

    Every enquiry form emails the broker through Resend and texts them through Twilio, and the person enquiring gets a confirmation email. Each calculator also offers to email people their results.

The site's own screens, on sample data

  • The stamp duty calculator, on sample figures.

    The system's own output. Sample figures.

  • A nightly job run locally against a sample data server, and the cache keys it wrote.

  • A page the template builds from a made-up suburb's entry.

    The system's own output. Made-up suburb.

  • The broker's email for a sample enquiry, from the site's own template.

    The system's own output. Sample data.

What a person still does

The broker calls people back and gives the advice. The site sticks to general information. Someone works through the register of dated claims on its review-by dates. The margins on the derived rates are the broker's call.

The technical detail

What each system allowed

The data service

  • On this job, three calculators and the rates page run on answers cached from the broker's own account with the data service.

Vercel Cron Jobs

  • Vercel calls a route on the production deployment with an HTTP GET request, on a schedule set in vercel.json, and the timezone is UTC.1
  • If a CRON_SECRET is set, Vercel sends it in the Authorization header so the route can check the call is genuine.2
  • Each nightly job here checks that header before it does anything.
  • Vercel also says cron delivery is best effort and a run can be missed or repeated, so each job is safe to run twice.2
VercelUpstash

Redis

  • Vercel KV is no longer offered: Vercel moved existing KV stores to Upstash Redis and points new projects to a Redis integration in its Marketplace.1
  • The site talks to its cache over Upstash's REST API, where each Redis command is a URL path and a JSON value can go in the body of a POST.2

Resend and Twilio

  • Resend's API sends an email with a sender, recipients, a subject, an HTML body and a reply-to address.1
  • Twilio sends a text when you create a Message with a recipient, a sender and a body.2

Vendor links checked 15 November 2026.

Design decisions

  • Ask the common questions overnight

    Asked live, each answer took a few seconds. Scheduled jobs now ask the most common questions in the early hours, a batch at a time, and store the answers. The pages read the stored answer.

  • Round inputs into bands

    Income, deposit, loan size and the other inputs are rounded into bands before the cache is checked, so nearby inputs share one stored answer. The nightly jobs and the pages build the key with the same code, so they can't drift apart.

  • Ask live once, then keep it

    Anything outside the stored bands is asked live, and the answer is stored for the next person.

  • File each night's answers under that day's rates

    The key carries the date of the day's rate update, so the old answers drop out without a clean-up job. Entries also expire on their own, so a missed night doesn't leave old answers in place.

  • Stamp duty as a curve

    For each kind of buyer, the duty is sampled across a range of prices, with extra samples on either side of known price thresholds, and only the points where the line bends are kept. The browser reads between those points, so the slider doesn't wait on a server. A copy of the curves is kept with the code in case a night's data is missing.

  • Keep the subscription where the rules move

    We'd set out to replace the subscription. Stamp duty, buying power and refinance stayed on the data service because those change with each budget and lender policy.

  • No lender names

    At the broker's request, lender names are off by a single setting, and lender brands are taken out of product names before they're shown.

  • No bare rates

    If a residential rate arrives without a comparison rate, the site shows "on application" instead of the rate.

  • Loud when a channel is missing

    If the email or text settings are missing in production, the site logs an error at start-up instead of quietly dropping that channel.

How the copy was checked

We worked from the advertising checklist the broker's licensee uses. On the rate displays, the comparison rate shows at the same size and weight as the headline rate, and the comparison rate warning starts with a bold "WARNING", on residential pages only. Then the broker read every page and left notes on the page itself, over several rounds, and signed items off one at a time before launch. Some state rules changed while the site was in review, and those pages were rewritten before it went live.

Claims that go stale on a date, like a grant's end date or a stamp duty "as at" date, sit in a register. Each row names the claim, the file it's in, its current value, the source to check and a review-by date. The register doesn't send alerts: a person works through it on those dates.

We don't give legal or compliance advice. What a site like this needs is your licensee's call.

Each rate with its comparison rate beside it, at the same size.

The system's own output. Sample figures.

Where it stands

Live since

July 2026

  • It went live on the broker's own domain in July 2026, with the calculators, rates, guides and suburb pages described above.

We didn't measure enquiries before and after, so there's no result figure on this page.

Questions

Do the calculators ask the data service every time someone uses them?

Not on this job. The common questions are asked overnight and the answers cached. Anything new is asked once, then stored for the next person.

How do you make a stamp duty calculator answer instantly?

Work it out ahead of time. Here, each kind of buyer's duty is stored as a short curve of points, and the browser reads between them as the price moves.

How should a broker's website show interest rates?

That's for your licensee's checklist to decide. On this job, rates refresh daily, the comparison rate sits beside the headline rate at the same size, the warning is in bold, and derived rates are labelled indicative.

Do suburb pages have to be written one by one?

No. Each suburb is a short data entry and one template builds the pages. Suburbs with only the basic entry stay out of search results until they're written up.

What happens when someone enquires through the site?

The broker gets an email and a text, and the person enquiring gets a confirmation. Calculator users can also email themselves their results.

Running a broker site with slow calculators or rates that are hard to keep current?

Book Free Assessment

Product names and logos belong to their owners and are shown to identify the systems connected.