Skip to content

About

JudgmentRate_Desktop: Desktop software for attorneys to calculate U.S. post-judgment interest rates offline. Auto-fetches federal rates, features editable state-specific rates, computes simple interest from judgment amount, dates, and jurisdiction. Ideal for quick legal estimates & easy maintenance.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Β 
Β 

Latest commit

Β 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Post-Judgment Interest Calculator Logo

πŸ’° Post-Judgment Interest Calculator

A Professional Desktop Application for Legal Interest Calculations

License: MIT Built with Tauri Rust React TypeScript

Calculate post-judgment interest rates for federal and state jurisdictions across the United States

Download Latest Release β€’ Report Bug β€’ Request Feature


πŸ“‹ Table of Contents


✨ Features

πŸ›οΈ Federal Rate Calculations

Automatically fetches real-time federal interest rates from the FRED API (1-Year Treasury Constant Maturity Rate)

πŸ—ΊοΈ All 50 States + DC

Pre-populated database with interest rates for all U.S. jurisdictions

✏️ Database Management

Built-in UI for viewing, editing, adding, and deleting state interest rates

πŸ“Š Simple Interest Formula

Uses the standard formula: Principal Γ— Rate Γ— (Days / 365)

πŸ“… Flexible Date Ranges

Calculate interest for any date range with intuitive date pickers

πŸ” Secure API Storage

Local storage of FRED API key with easy configuration

🌐 Cross-Platform Support

  • βœ… Windows (MSI installer available for x64 and ARM64)
  • βœ… macOS (Build from source)
  • βœ… Linux (Build from source)

πŸ–ΌοΈ Screenshots

πŸ“Š Calculator Tab
Calculate interest with ease
πŸ—ƒοΈ Database Manager
Manage state rates efficiently
βš™οΈ Settings
Configure your API key
Calculator Tab Database Manager Tab Settings Tab

πŸš€ Quick Start

  1. Download the installer from the Releases page
  2. Install the application
  3. Get your FREE API key from FRED
  4. Configure your API key in the Settings tab
  5. Start calculating post-judgment interest!

πŸ’» Installation

Option 1: Windows MSI Installer (Recommended)

πŸ’Ώ x64 Version

For most Windows PCs
(Intel/AMD processors)

Download x64

πŸ’Ώ ARM64 Version

For ARM-based devices
(Surface Pro X, etc.)

Download ARM64

Installation Steps:

  1. Download the appropriate MSI for your system architecture
  2. Double-click the downloaded file to run the installer
  3. Follow the installation wizard
  4. Launch the app from your Start Menu

Option 2: Build from Source

πŸ“¦ Prerequisites
πŸ”¨ Build Steps
# Clone the repository
git clone https://github.com/matt793/JudgmentRateDesktop.git
cd JudgmentRateDesktop

# Install dependencies
npm install

# Run development server
npm run tauri dev

# Build for production
npm run tauri build

πŸ“– User Guide

Calculator Tab

Calculator Interface

The main interface for calculating post-judgment interest:

  1. Select Jurisdiction: Choose between Federal or any U.S. state
  2. Enter Judgment Date: The date the judgment was entered
  3. Enter Amount: The principal judgment amount
  4. Select Date Range: Choose start and end dates for interest calculation
  5. Calculate: Click to see results including:
    • Applied interest rate
    • Number of days
    • Total interest amount
    • Legal disclaimer

πŸ’‘ Tip: Federal rates are fetched automatically based on the judgment date!


Database Manager Tab

Database Manager Interface

Manage state interest rates with an intuitive interface:

  • View all state rates in a sortable grid
  • Edit rates by double-clicking cells
  • Search for specific states
  • Filter by rate type (fixed/variable)
  • Add new jurisdictions
  • Delete outdated entries

Rate Types:

  • Fixed Rate: A specific percentage (e.g., 8%)
  • Variable Rate: Federal rate + additional percentage

Settings Tab

Settings Interface

Configure your FRED API key:

  1. Get your API key:

  2. Enter the key in the settings

  3. Save to enable federal rate calculations

πŸ”’ Security: Your API key is stored locally and never transmitted except to FRED's servers.



πŸ› οΈ Tech Stack

Backend (Rust) πŸ¦€

Technology Purpose
Tauri Desktop application framework
SQLite Local database via rusqlite
reqwest HTTP client for FRED API
chrono Date handling and calculations
serde JSON serialization
thiserror Error handling
dotenvy Environment management

Frontend (TypeScript/React) βš›οΈ

Technology Purpose
React UI framework
TypeScript Type-safe JavaScript
Vite Build tool and dev server
Tailwind CSS Utility-first styling
React DatePicker Date selection
Tauri API Backend communication

πŸ—οΈ Architecture

graph TB
    A[React Frontend] -->|Tauri IPC| B[Rust Backend]
    B --> C[SQLite Database]
    B --> D[FRED API]
    B --> E[Interest Calculator]
    
    C --> F[State Rates]
    D --> G[Federal Rates]
    
    E --> H[Results]
    H --> A
Loading

πŸ“Š How It Works

Federal Rate Calculation

  1. Week Determination: Identifies the week preceding the judgment date (Monday-Sunday)
  2. API Call: Fetches daily 1-Year Treasury yields from FRED
  3. Average Calculation: Computes average of valid yields (skips missing data)
  4. Rate Conversion: Converts percentage to decimal

State Rate Handling

  • Storage: Local SQLite database
  • Types:
    • Fixed: Specific percentage rate
    • Variable: Federal rate + additional percentage
  • Management: Full CRUD operations via Database Manager

⚠️ Important Note: State interest rates are subject to change and may be updated by state legislatures. While this application comes pre-populated with current rates, you should verify and manually update state rates periodically through the Database Manager tab to ensure accuracy. Always consult official state sources or legal counsel for the most current rates.

Interest Calculation

Interest = Principal Γ— Rate Γ— (Days / 365)
  • Days calculated inclusively
  • Results rounded to 2 decimal places
  • Includes legal disclaimer

🧩 Project Structure

JudgmentRateDesktop/
β”œβ”€β”€ πŸ“ src/                      # React frontend
β”‚   β”œβ”€β”€ πŸ“ components/           # UI components
β”‚   β”‚   β”œβ”€β”€ πŸ“„ CalculatorTab.tsx
β”‚   β”‚   β”œβ”€β”€ πŸ“„ DbManagerTab.tsx
β”‚   β”‚   └── πŸ“„ SettingsTab.tsx
β”‚   β”œβ”€β”€ πŸ“„ App.tsx               # Main app
β”‚   β”œβ”€β”€ πŸ“„ types.ts              # TypeScript types
β”‚   └── πŸ“„ main.tsx              # Entry point
β”‚
β”œβ”€β”€ πŸ“ src-tauri/                # Rust backend
β”‚   β”œβ”€β”€ πŸ“ src/
β”‚   β”‚   β”œβ”€β”€ πŸ“„ main.rs           # App entry
β”‚   β”‚   β”œβ”€β”€ πŸ“„ commands.rs       # Tauri commands
β”‚   β”‚   β”œβ”€β”€ πŸ“„ db.rs             # Database ops
β”‚   β”‚   β”œβ”€β”€ πŸ“„ rate_fetcher.rs   # FRED API
β”‚   β”‚   └── πŸ“„ calculator.rs     # Interest calc
β”‚   └── πŸ“„ Cargo.toml            # Rust deps
β”‚
β”œβ”€β”€ πŸ“ RMImages/                 # Screenshots
└── πŸ“„ package.json              # Node deps

πŸ”§ Development

Database Schema

CREATE TABLE state_rates (
    id INTEGER PRIMARY KEY,
    state TEXT NOT NULL UNIQUE,
    rate REAL NOT NULL,
    is_variable INTEGER NOT NULL DEFAULT 0,
    plus_percentage REAL DEFAULT 0,
    update_frequency TEXT,
    last_update TEXT,
    notes TEXT
);

Running Tests

# Rust tests
cd src-tauri
cargo test

# Frontend tests
npm test

Updating Dependencies

# Rust dependencies
cd src-tauri
cargo update

# Node dependencies
npm update

🀝 Contributing

We welcome contributions! Here's how you can help:

  1. 🍴 Fork the repository
  2. 🌿 Create a feature branch (git checkout -b feature/AmazingFeature)
  3. πŸ’Ύ Commit your changes (git commit -m 'Add AmazingFeature')
  4. πŸ“€ Push to the branch (git push origin feature/AmazingFeature)
  5. πŸ”„ Open a Pull Request

Code Style

  • Rust: Follow standard Rust formatting (cargo fmt)
  • TypeScript: Use Prettier and ESLint configurations
  • Commits: Use conventional commit messages

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.


πŸ™ Acknowledgments

Special thanks to:

🏦 Federal Reserve Economic Data (FRED) for providing reliable interest rate data

πŸš€ Tauri for the amazing desktop framework

βš›οΈ React and πŸ¦€ Rust communities

πŸ“š All contributors and users of this application


🎡 Built with Vibes

This entire application was "Vibe Coded" - built through an interactive, conversational coding session where we explored ideas, iterated on solutions, and created something awesome together. Sometimes the best code comes from good vibes and collaborative energy! ✨


πŸ“§ Support

For issues, questions, or suggestions, please open an issue on GitHub.


Made with ❀️ by matt793

About

JudgmentRate_Desktop: Desktop software for attorneys to calculate U.S. post-judgment interest rates offline. Auto-fetches federal rates, features editable state-specific rates, computes simple interest from judgment amount, dates, and jurisdiction. Ideal for quick legal estimates & easy maintenance.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages