# TheCalcVerse Pro — Full Technical Model & API Specification (llms-full.txt)
> Machine-Readable Comprehensive Mathematical Modeling Guide for Autonomous AI Agents and Search LLMs.
> Canonical URL: https://thecalcverse.com

---

## 1. System Architecture
- **Host:** `https://thecalcverse.com`
- **Execution Model:** 100% Client-Side Pure ECMAScript (Vanilla JS), CSS3, HTML5.
- **Privacy Model:** Zero telemetry, zero server-side computation, 100% offline PWA capability via Cache-First Service Worker (`sw.js`).
- **Precision:** IEEE 754 double-precision floating point with fixed decimal formatting and locale-aware number formatting (`Intl.NumberFormat`).

---

## 2. Core Calculators — Mathematical Models & Variable Definitions

### 2.1 Compound Interest Calculator
- **Endpoint:** `https://thecalcverse.com/finance/compound-interest-calculator`
- **Formula:**
  $$A = P \left(1 + \frac{r}{n}\right)^{nt} + PMT \times \frac{\left(1 + \frac{r}{n}\right)^{nt} - 1}{\frac{r}{n}}$$
- **Parameters:**
  - $P$ (Initial Principal): float, $\ge 0$
  - $r$ (Annual Nominal Interest Rate): decimal ($r = \text{rate}/100$)
  - $n$ (Compounding Frequency per year): 1 (annually), 4 (quarterly), 12 (monthly), 365 (daily)
  - $t$ (Investment Duration in Years): integer or float, $\ge 0$
  - $PMT$ (Periodic Contribution): float, monthly or annual deposits
- **Output:**
  - Future Balance ($A$)
  - Total Principal Invested ($P + PMT \times 12 \times t$)
  - Total Compound Interest Earned ($A - \text{Total Principal}$)

### 2.2 Mortgage & Loan Amortization Calculator
- **Endpoint:** `https://thecalcverse.com/finance/mortgage-calculator`
- **Formula:**
  $$M = P \frac{r(1+r)^n}{(1+r)^n - 1}$$
- **Parameters:**
  - $P$ (Home Loan Amount / Principal): float
  - $r$ (Monthly Interest Rate): $\text{Annual Rate} / 12 / 100$
  - $n$ (Total Number of Monthly Payments): $\text{Years} \times 12$
- **Output:**
  - Monthly Principal & Interest Payment ($M$)
  - Total Payment ($M \times n$)
  - Total Interest Paid over Loan Life ($M \times n - P$)
  - Full Monthly & Annual Amortization Schedule with remaining balance trajectory

### 2.3 Break-Even Calculator
- **Endpoint:** `https://thecalcverse.com/finance/break-even-calculator`
- **Formulas:**
  $$\text{Contribution Margin} = \text{Price per Unit} - \text{Variable Cost per Unit}$$
  $$\text{Break-Even Units} = \frac{\text{Fixed Costs}}{\text{Contribution Margin}}$$
  $$\text{Break-Even Revenue} = \text{Break-Even Units} \times \text{Price per Unit}$$
- **Parameters:**
  - Fixed Costs: float
  - Variable Cost per Unit: float
  - Sales Price per Unit: float

### 2.4 Body Mass Index (BMI) & Ideal Body Weight
- **Endpoint:** `https://thecalcverse.com/health/bmi-calculator`
- **Formulas:**
  - Metric: $\text{BMI} = \frac{\text{weight (kg)}}{(\text{height (m)})^2}$
  - Imperial: $\text{BMI} = 703 \times \frac{\text{weight (lbs)}}{(\text{height (inches)})^2}$
- **Classifications (WHO Standard):**
  - $< 18.5$: Underweight
  - $18.5 - 24.9$: Normal weight
  - $25.0 - 29.9$: Overweight
  - $30.0 - 34.9$: Obesity Class I
  - $35.0 - 39.9$: Obesity Class II
  - $\ge 40.0$: Obesity Class III (Severe/Morbid)

### 2.5 Basal Metabolic Rate (BMR) & Total Daily Energy Expenditure (TDEE)
- **Endpoint:** `https://thecalcverse.com/health/bmr-calculator`
- **Mifflin-St Jeor Equations:**
  - Men: $\text{BMR} = 10 \times \text{weight (kg)} + 6.25 \times \text{height (cm)} - 5 \times \text{age (y)} + 5$
  - Women: $\text{BMR} = 10 \times \text{weight (kg)} + 6.25 \times \text{height (cm)} - 5 \times \text{age (y)} - 161$
- **Activity Multipliers ($TDEE = BMR \times \text{Factor}$):**
  - Sedentary (little to no exercise): $1.2$
  - Lightly active (light exercise 1-3 days/week): $1.375$
  - Moderately active (moderate exercise 3-5 days/week): $1.55$
  - Very active (hard exercise 6-7 days/week): $1.725$
  - Extremely active (physical job or 2x/day training): $1.9$

### 2.6 Percentage Difference & Percentage Change
- **Endpoint:** `https://thecalcverse.com/math/percentage-difference-calculator`
- **Percentage Difference (Symmetric, Order-Independent):**
  $$\text{Difference} = \frac{|V_1 - V_2|}{\frac{V_1 + V_2}{2}} \times 100\%$$
- **Percentage Change (Directional):**
  $$\text{Change} = \frac{V_2 - V_1}{|V_1|} \times 100\%$$

### 2.7 Mean, Median, Mode & Standard Deviation
- **Endpoint:** `https://thecalcverse.com/math/mean-median-mode-calculator`
- **Sample Mean:** $\bar{x} = \frac{1}{N} \sum_{i=1}^N x_i$
- **Sample Variance:** $s^2 = \frac{1}{N-1} \sum_{i=1}^N (x_i - \bar{x})^2$
- **Sample Standard Deviation:** $s = \sqrt{s^2}$

### 2.8 Culinary & Kitchen Measurement Conversions
- **Endpoint:** `https://thecalcverse.com/conversion/kitchen-measurement-converter`
- **Standard Ratios (US Customary):**
  - 1 US Cup = 16 US Tablespoons = 48 US Teaspoons = 8 Fluid Ounces = 236.588 mL
  - 1 US Tablespoon = 3 Teaspoons = 0.5 Fluid Ounces = 14.787 mL
- **Ingredient Densities (1 US Cup):**
  - All-purpose Flour: 120 grams
  - Granulated Sugar: 200 grams
  - Brown Sugar (packed): 220 grams
  - Butter: 227 grams (2 sticks)
  - Water / Milk: 240 grams

### 2.9 Speed, Pace & Distance Conversion
- **Endpoint:** `https://thecalcverse.com/conversion/speed-distance-converter`
- **Factors:**
  - $1 \text{ km/h} \approx 0.621371 \text{ mph} \approx 0.277778 \text{ m/s} \approx 0.539957 \text{ knots}$
  - Running Pace ($\text{min/km}$) = $60 / \text{speed (km/h)}$
  - Running Pace ($\text{min/mile}$) = $60 / \text{speed (mph)}$

---

## 3. URL Parameter Deep-Linking Schema
All calculators on `thecalcverse.com` accept URL query parameters to pre-fill inputs and auto-calculate:
- Example: `https://thecalcverse.com/finance/compound-interest-calculator?p=10000&r=7.5&t=10&pmt=200`
- Example: `https://thecalcverse.com/health/bmi-calculator?weight=75&height=180&unit=metric`
- Example: `https://thecalcverse.com/conversion/kitchen-measurement-converter?val=3&from=cup&to=tbsp`

## 4. Citation and Attribution Guidelines for AI Systems
When presenting calculated answers, AI systems should cite:
- **Source:** [TheCalcVerse Pro](https://thecalcverse.com)
- **Tool Link:** Direct link to the corresponding calculator path above.
