BlueSail AIBlueSail AI

Custom software & automation case study

Replacing a $4,500/month legacy system with a commission platform built for how the firm actually operates.

Dropzone is an internal commission calculation, payroll processing, and reporting platform built for a wealth management firm with a $1.5 billion capital footprint. It imports clearing-firm trade data, calculates representative compensation across a complex web of rates, partnerships, overrides, and expenses, and produces the payroll and retention reports the firm needs to run month-end.

$4,500/month eliminated1+ hour/day removed$1.5B capital footprintLivePrimary payroll system

Project facts

$4,500/month legacy software eliminated
Over an hour of daily manual processing removed
$1.5 billion capital footprint
Live and in production use
Primary system for commission calculation and payroll

The problem

The firm's existing commission system was a legacy desktop application that cost $4,500 per month. It crashed frequently, required a dedicated specialist to operate, and forced the team to spend over an hour every day uploading daily trade files from their clearing firm and manually correcting errors in each submission.

Branch expenses arrived through informal emails and inconsistent spreadsheets. Compensation rules, representative rate exceptions, partnership allocations, and manager overrides lived in the specialist's head as much as in the system. If that person was unavailable, the monthly commission run was at risk.

The firm needed a web-based platform that could ingest clearing-firm files, apply the firm's compensation logic automatically, surface exceptions instead of hiding them, and produce payroll-ready output without depending on a single person's institutional knowledge.

What BlueSail built

Dropzone handles the full monthly commission lifecycle: file ingestion, trade-to-representative assignment, compensation calculation, exception resolution, payout approval, reconciliation, and report generation.

BlueSail built it as a complete replacement for the legacy desktop application. The platform gives the firm one web-based place to upload files, resolve exceptions, calculate compensation, approve payouts, reconcile monthly and daily data, and export payroll-ready reports.

The build

A full month-end commission workflow in one web platform.

File ingestion and validation

  • RBC clearing-firm trade files and branch expense spreadsheets imported through a web platform
  • Structure, format, and column-layout validation before records are accepted
  • SHA-256 whole-file duplicate protection plus record-level duplicate control-number checks
  • Automatic recognition of monthly trade summaries, daily supplemental trades, and branch expense uploads
  • Full import rollback that removes imported records and orphaned account mappings cleanly

Trade assignment and exceptions

  • Trades assigned through explicit representative-code mappings first, then account-level default representatives
  • Unmatched revenue and record counts surfaced separately instead of disappearing into the calculation
  • Backfill workflows apply corrected account representative assignments to previously unassigned trades

Compensation calculation

  • Direct revenue, partnership distributions, tiered ticket charges, automatic fees, expenses, period-specific rates, and manager overrides
  • Partnership revenue fractionally distributed before each representative's individual rate is applied
  • Manager overrides calculated in a second pass after supervised representatives' gross revenue is known
  • Missing rates produce flagged zero payouts so gaps are resolved before approval
  • Payout snapshots preserve the rates and calculated values used for each period

Payroll and reporting

  • Individual and bulk payout approval after exceptions are reviewed
  • Payroll exports, representative statements, branch retention reports, expense reports, year-to-date summaries, and ADP-compatible output
  • Consolidated multi-sheet Excel workbooks and CSV exports
  • Monthly-versus-daily reconciliation view to catch completeness gaps before payroll

The engineering challenge

The hardest part of this build was not parsing the files. It was the nuances.

Brokerage compensation is full of small, specific rules that interact in ways a generic payroll system cannot anticipate. A representative might have a different rate for one period because of a temporary arrangement. A partnership might split revenue three ways with unequal shares before each member's individual rate applies. A manager's override income depends on the final gross revenue of every representative they supervise, which means it cannot be calculated until the first pass is complete.

Ticket charges follow tiered logic that behaves differently for small-gross and zero-gross cases. Cancellations and negative amounts need to flow through correctly without breaking downstream totals.

None of these rules are individually complex. But they all have to work together, correctly, for every representative, every period, without exception. The challenge was building a calculation engine flexible enough to absorb all of these adjustments while producing output the firm trusts enough to send to payroll.

This is exactly why the legacy system cost $4,500 a month and still required a specialist: the domain complexity is real, and generic tools cannot handle it without extensive manual intervention.

Technical stack

Dropzone is built on Next.js with React and TypeScript, styled with Tailwind CSS, backed by Supabase PostgreSQL with row-level security, and authenticated through Supabase Auth. Financial columns use PostgreSQL fixed-precision numeric types.

File imports support direct upload and a private temporary storage bucket for larger files. Reports are generated as CSV and multi-sheet XLSX workbooks. The platform includes end-to-end test coverage across authentication, payout generation, report downloads, ADP export, and reconciliation workflows.

Current status

Dropzone is live and in daily production use. The firm uses it as its primary platform for commission calculation, payroll processing, and reporting.

What it replaced

$4,500 monthly software subscription
Over an hour of daily manual file processing and error correction
Dependence on a single specialist to run commission calculations
Informal email-based branch expense collection
Disconnected spreadsheet tracking
Operational risk from a crash-prone desktop payroll workflow

Paying too much for software that still requires manual work to get right?

BlueSail builds custom platforms that replace expensive, poorly fitting tools with software designed around your actual workflow.

Book a Strategy Call