
Student Editions · The Open Notebook Series · No. 001
Inside FinEngine: A Computational Finance Notebook
Working Notes on Money, Loan Mathematics, Financial Software, and Practical Simulations
Md Golam Mubasshir Rafi2026
Publisher: Algorism Press
Formats: Digital (Open Access) & Print (BDT 180)98 Pages12 Chapters & 5 Appendices
Identifiers: ISBN Registration PendingCrossref Prefix 10.83884ORCID
About This Notebook
A formula that is correct on paper becomes one small part of a much larger system once its answer has to appear on a borrower's screen and repeat correctly for thirty-six months. Inside FinEngine follows that journey, using one open-source project as the running example.
Each chapter starts from a real question, such as why two calculators disagree by a few Poisha. It then builds the mathematics, works out a number, shows a short code reference in JavaScript or Python, and ends with something the reader can check. The finance chapters need only percentages and basic algebra.
Subjects:Computational Finance · Money & Decimal Precision · Loan Mathematics · Amortization & XIRR · Financial Software · Practical Simulations
Why I Kept These Notes
When you learn finance in an undergraduate classroom, most equations arrive cleanly on a whiteboard: a principal amount, a quoted annual rate, a fixed number of months, and a final number rounded to two decimal places. When you try to turn those same equations into software that borrowers, students, or small businesses actually rely on, a second layer of work appears immediately. Floating-point arithmetic introduces hidden drift, rounding rules shift totals by a few Poisha, fees change the true cost of credit, and amortization schedules refuse to close at exact zero unless terminal reconciliation is specified explicitly.
This notebook collects the working notes I kept while designing, verifying, and documenting FinEngine. Rather than treating finance theory and software engineering as two separate subjects, each chapter keeps both on the same page: why a formula works mathematically, how Bangladeshi Taka and Poisha behave in computer memory, how loan schedules and irregular cash flows are verified by hand and automated tests, and how small reusable modules can travel cleanly from a browser simulator into Python notebooks and classroom tools.
These notes are written from the perspective of a finance student who wanted every number produced by a financial calculator to be explainable down to the last Poisha. Readers do not need advanced calculus or enterprise engineering experience to follow along; percentages, basic algebra, and a willingness to test assumptions against real numbers are enough.
Read Chapters 1 through 6 for the core mathematics of money representation, time value, EMI schedules, terminal reconciliation, and dated cash flows (NPV and XIRR). Continue through Chapters 7 through 12 for double-entry ledger thinking, modular engine architecture, borrower simulation scenarios, Python and WordPress reuse, and automated verification. Appendices A through E provide a standalone formula dictionary, student project checklists, worked solutions, glossary, and primary source references.
What Is FinEngine?
FinEngine is an open-source computational finance library and educational toolkit built to bridge textbook financial mathematics and reproducible software implementation. It pairs integer-based minor-unit arithmetic (100 Poisha = 1 Taka) with explicit rounding policies, schedule invariants, and bilingual (English and Bangla) classroom laboratories.
Integer Poisha representation, BigInt currency conversion, explicit rounding policies, and double-entry debit/credit validation.
Nominal/effective rate conversion, reducing-balance EMI, terminal-reconciled amortization schedules, NPV, and bisection-backed XIRR.
Client-side simulation lab, student and educator worksheets in English and Bangla, and zero-server privacy-preserving calculation.
Python reference package compatible with Pandas DataFrames for portfolio sensitivity tables, classroom exercises, and audit scripts.
WordPress shortcode integration ([finengine_calculator]) bringing transparent client-side financial calculators to educational sites.