• Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
Scoder

Scoder

shubham07

Public
Like
shubham07
Home
Code
2
shared
1
README.md
Branches
1
Pull requests
Remixes
History
Environment variables
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
README.md
Code
/
README.md
Search
6/1/2025
Viewing readonly version of main branch: v2
View latest version
README.md

Compound Interest Calculator

A web-based compound interest calculator that helps users calculate the growth of their investments over time.

Features

  • Calculate compound interest with various parameters
  • Support for different compounding frequencies (annually, semi-annually, quarterly, monthly, daily)
  • Visual representation of growth over time
  • Additional contributions support
  • Real-time calculations as you type

Project Structure

├── backend/
│   └── index.ts             # Main HTTP server (Hono)
├── frontend/
│   ├── index.html           # Main HTML template
│   ├── index.tsx            # React frontend entry point
│   └── style.css            # Custom styles
├── shared/
│   └── types.ts             # Shared TypeScript types
└── README.md

Usage

The calculator accepts the following inputs:

  • Principal amount (initial investment)
  • Annual interest rate (%)
  • Time period (years)
  • Compounding frequency
  • Additional monthly contributions (optional)

Calculation Formula

The compound interest formula used:

A = P(1 + r/n)^(nt) + PMT × [((1 + r/n)^(nt) - 1) / (r/n)]

Where:

  • A = Final amount
  • P = Principal amount
  • r = Annual interest rate (decimal)
  • n = Number of times interest compounds per year
  • t = Time in years
  • PMT = Additional monthly payment
FeaturesVersion controlCode intelligenceCLIMCP
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
© 2026 Val Town, Inc.