Skip to content

A simple command-line tool to calculate earnings from stocks, interest etc.

Notifications You must be signed in to change notification settings

halifecik/interestCalculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

30 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ’ฐ Interest Calculator โ€” Inflation-Aware Investment Simulator

A terminal-based financial simulation tool that helps you project long-term investments while adjusting for inflation.
Built in C, with CSV and chart output powered by Gnuplot.


๐Ÿ“œ Project Overview

Interest Calculator is a simple yet powerful CLI program written in C that simulates compound investment growth over a specified period.
It accounts for both interest (growth) and inflation (devaluation) and outputs a clean .csv dataset along with a visual chart.
Itโ€™s ideal for analyzing financial plans!


โš™๏ธ Features

  • ๐Ÿงพ Custom currency input ($ / โ‚บ / โ‚ฌ / etc.)
  • ๐Ÿ“ˆ Compound interest support (monthly rate)
  • ๐Ÿ“‰ Yearly inflation adjustment
  • ๐Ÿ“… Time range in months
  • ๐Ÿ“„ Outputs a .csv file with:
    • Raw value over time
    • Inflation-adjusted value
    • Formatted amounts for readability
  • ๐Ÿ“Š Gnuplot integration:
    • PNG chart with two plotted lines:
      • Raw growth
      • Inflation-adjusted growth
  • ๐Ÿ“‚ Filename customization for saving results
  • ๐Ÿงฎ Localized formatting for large numbers

๐Ÿ› ๏ธ Technologies Used

  • Language: C
  • Dependencies: math.h, stdio.h, stdlib.h, string.h
  • External Tool: Gnuplot (for chart generation)
  • Output format: CSV, PNG

๐Ÿ“ฆ Build & Run Instructions

๐Ÿงฐ Requirements

  • GCC compiler
  • Gnuplot installed and in your PATH

๐Ÿ”จ Build

Build using

gcc -o wCurrency src/V_2/V2.2.c -lm

Run using

./wCurrency

๐Ÿคซ Upcoming Features

  • API intergration for realtime currency comparison.
  • Running website w/UI for ease of use.
  • Edge Case handling. Since this is just a work progress.

โญ๏ธ Feel free to drop a star!

About

A simple command-line tool to calculate earnings from stocks, interest etc.

Topics

Resources

Stars

Watchers

Forks

Languages