A calculator for determining the Competitive Balance Tax (CBT / Luxury Tax) implications of deferred money in MLB contracts, based on Article XXIII of the 2022-2026 Basic Agreement.
Calculates present value of deferred compensation using the Federal Mid-Term Rate, shows year-by-year breakdowns of cash salary vs. CBT hit, and visualizes the financial timeline across playing and payout years. Includes preset scenarios for notable contracts like Shohei Ohtani's $700M deal with the Dodgers.
Originally created by WarrenAdams8 using Google AI Studio.
Prerequisites: Node.js
npm install
npm run dev
The app will be available at http://localhost:3000.
The Docker image is published to GHCR and builds for both linux/amd64 and linux/arm64 (Raspberry Pi compatible).
docker-compose up -d
This pulls ghcr.io/owine/mlb-deferred-contract-calculator:latest and serves on port 3000.
Uncomment the build section in docker-compose.yml and comment out the image line, then:
docker-compose up -d --build
Or build directly:
docker build -t mlb-calculator .
docker run -d --name mlb-calculator --restart unless-stopped -p 3000:3000 mlb-calculator
The container serves on port 3000. Point your reverse proxy (nginx, Caddy, Traefik, etc.) to http://localhost:3000.