03
Custom Plugin · Business Logic · Salesforce Integration

Tax calculator plugin —
a sales tool disguised
as a landing page widget

An interactive employer tax calculator that showed prospects the real cost of managing HR in-house vs. outsourcing — while quietly feeding qualified leads into Salesforce.

50
US states with
dynamic tax rates
2-in-1
prospect tool
and lead gen engine
0
manual steps to
capture a lead
Live
tax data kept
dynamically updated
The Problem

The sales pitch needed
a number, not a brochure

For a PEO division partner, the core sales argument is straightforward: companies spend more managing payroll taxes and HR compliance on their own than they would outsourcing it. But telling prospects that isn't enough — showing them their actual number is what converts.

The challenge was building a calculator that could do this accurately. Employer tax obligations vary significantly by state — FUTA, SUTA, state income tax withholding, and other contributions differ across all 50 states, and the rates change. A static calculation wouldn't hold up. Neither would a generic one.

On top of the calculation logic, the business needed a way to capture every prospect who used the tool — and connect them directly to the sales pipeline.

The Concept

One tool.
Two jobs.

The plugin was designed from the start to serve two audiences simultaneously — the prospect using it, and the sales team behind the scenes.

For the prospect
A genuinely useful calculator
Enter your state, number of employees, and a few other inputs — get a real breakdown of what you're currently spending on employer taxes vs. what you'd pay with the service. A concrete number makes the decision easier.
For the sales team
A qualified lead, automatically
Every calculation required an email address. The moment someone ran the numbers, that contact — along with their state and employee count — was pushed directly to Salesforce for targeted follow-up. No manual data entry, no leads slipping through.
How It Looked

Clean inputs,
clear results

Embedded as a shortcode in the landing page, the calculator kept the UX simple: a few fields, an email, and an instant side-by-side comparison.

Calculator preview — embedded via shortcode
State
California
Employees
45
Avg. salary
$68,000
Managing in-house
$142,800
estimated annual employer tax cost
With our service
$98,400
you save ~$44,400 per year
Under the Hood

The technical
decisions that mattered

🗺️
Dynamic tax rates — all 50 states
Tax rates weren't hardcoded. Each state's FUTA, SUTA, and relevant employer contribution rates were stored dynamically and updatable from the WordPress admin — so when rates changed, no code deployment was needed. Just update the data.
🔗
Salesforce CRM integration
On form submission, the plugin pushed the lead's data — email, state, employee count — directly to Salesforce via API. The sales team received a pre-qualified contact with context already attached, ready for targeted email campaigns aimed specifically at calculator users.
Real-time calculation — no page reload
Results updated dynamically as the user filled in their inputs. The calculation logic ran client-side for instant feedback, with the server-side PHP handling tax data retrieval and the Salesforce push on submission.
📌
Shortcode-based, embeddable anywhere
The calculator was delivered as a WordPress shortcode — [tax_calculator] — so the marketing team could embed it on any page, landing page, or post without developer involvement for placement changes.
The Lead Flow

From landing page
to sales pipeline

Every interaction with the calculator was automatically wired into the sales workflow — zero manual work required from the team.

🏠
Prospect lands
Visits the landing page with the embedded calculator
🧮
Runs the numbers
Enters state, employee count, avg. salary
✉️
Enters email
Required to receive the full breakdown
☁️
Auto-captured
Lead pushed to Salesforce with context
📨
Targeted follow-up
Sales team sends campaign to calculator users
Tech Stack

Built with

PHP WordPress Plugin API JavaScript Salesforce REST API WP Shortcode API WP Options API Dynamic Tax Data Layer AJAX CRM Integration

Have a complex WordPress project?

Tell me about it — I'll respond with a personalised Loom within 48 hours.

Start a project →