# minchen11/compound-calculator architecture

> Architecture diagram of the GitHub repository minchen11/compound-calculator, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-02). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/minchen11/compound-calculator
- Repository: https://github.com/minchen11/compound-calculator

## Overview

This is a small, client-side compounding calculator implemented in one HTML file. The user enters starting capital, daily compounding rate, duration, and active days per month; the app formats the capital input, calculates the projection, and presents a daily breakdown grouped by month. The README documents these capabilities but no source excerpts were provided, so the internal component boundaries and links below reflect documented behavior only.

Main entry points: [`compounding.html`](https://github.com/minchen11/compound-calculator/blob/main/compounding.html) (Projection Inputs)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("User"))
node_inputs["Projection Inputs<br/>[compounding.html]"]
node_input_format["Capital Formatter<br/>[compounding.html]"]
node_projection["Compounding Projection<br/>[compounding.html]"]
node_daily_breakdown["Monthly Daily Breakdown<br/>[compounding.html]"]

node_user -->|"enters parameters"| node_inputs
node_inputs -->|"formats capital"| node_input_format
node_inputs -->|"provides parameters"| node_projection
node_projection -->|"renders daily results"| node_daily_breakdown

click node_inputs "https://github.com/minchen11/compound-calculator/blob/main/compounding.html"
click node_input_format "https://github.com/minchen11/compound-calculator/blob/main/compounding.html"
click node_projection "https://github.com/minchen11/compound-calculator/blob/main/compounding.html"
click node_daily_breakdown "https://github.com/minchen11/compound-calculator/blob/main/compounding.html"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_user toneBlue
class node_inputs,node_projection,node_daily_breakdown toneTeal
class node_input_format toneMint
```

## Components

### Other components

- **User**
- [Projection Inputs](https://github.com/minchen11/compound-calculator/blob/main/compounding.html): `compounding.html`
- [Capital Formatter](https://github.com/minchen11/compound-calculator/blob/main/compounding.html): `compounding.html`
- [Compounding Projection](https://github.com/minchen11/compound-calculator/blob/main/compounding.html): `compounding.html`
- [Monthly Daily Breakdown](https://github.com/minchen11/compound-calculator/blob/main/compounding.html): `compounding.html`

## Connections

- User → Projection Inputs: enters parameters (evidence: `README.md`)
- Projection Inputs → Capital Formatter: formats capital (evidence: `README.md`)
- Projection Inputs → Compounding Projection: provides parameters (evidence: `README.md`)
- Compounding Projection → Monthly Daily Breakdown: renders daily results (evidence: `README.md`)
