CalcVault

Every calculation. One vault.

Learn the Math Behind Every Calculation

Pick a category below, then click any topic to read the full explanation

📄

Treasury Bills

Short-term government debt
📈

Treasury Bonds

Long-term government debt
📊

Equity Valuation

Stocks, dividends & returns
💱

Foreign Exchange

Spot, forward & swaps
🔄

Repo / Reverse Repo

Money market operations
💰

Personal Finance

Loans, savings & retirement

Contact & Enquiries

Get in touch for questions, collaborations, or feedback

About Me

I am Tharindu De Silva, a dedicated banking professional with a strong passion for treasury operations, capital markets, and financial analytics. With hands-on experience in treasury management and a keen interest in developing practical tools, I built this suite of calculators to assist professionals in making informed decisions. I believe in continuous learning and sharing knowledge to empower the financial community.

Contact Details

👤
Name
Tharindu De Silva
💼
Profession
Banker
📱

Send an Enquiry

Fill the form below and your message will be sent to my email.

This will open your email client with the message pre-filled. Alternatively, email me at thareesoft@gmail.com

Every Calculation. One Vault.

Professional calculators for Treasury, Banking, Capital Markets & Personal Finance — all in one trusted platform.

T-Bills

Treasury Bill Tools

Price, yield, accrued interest and capital gain/loss calculations for Sri Lankan Treasury Bills (A/364).

PriceYieldAccrued InterestGain / Loss
→

T-Bonds

Government Bond Tools

Bond pricing, YTM, accrued interest, amortization, gain/loss and duration/convexity analytics.

PriceYTMAmortizationDuration / Convexity
→

Equity

Valuation & Returns

Equity valuation, profitability, return and cost of equity measures.

DDMP/EEPSCAPMDCFPEG
→

FX

Foreign Exchange

Spot, forward, swap points and swap value calculations for FX (USD/LKR priority).

Forward RateSwap PointsSwap Value
→

Repo / Reverse Repo

Money Market Tools

Repo interest, maturity amount and collateral exposure / minimum face value required.

Repo InterestMaturity AmountCollateral Exposure
→

Personal Finance

Loans, Savings & Investments

Mortgage, EMI, auto loan, compound interest, retirement, ROI and NPV/IRR calculators.

MortgageEMIAuto LoanCompound InterestRetirementROINPV/IRR
→

Portfolio Planner

Investment Allocator

Allocate cash across T-Bills, T-Bonds, Equity, and FDs. Track unallocated funds and manage multi-deal portfolios.

T-BillsT-BondsEquityFDs
→

SL Personal Tax

Income Tax Calculator

Calculate individual income tax payable based on Sri Lanka Inland Revenue Department rules (effective 1 April 2025).

Personal ReliefProgressive SlabsAPIT
→

Sri Lanka Personal Income Tax Calculator

Individual tax calculation based on Inland Revenue Department rules — effective 1 April 2025

Tax Rates & Slabs (Resident / Non-Resident Individuals)

Tax-Free Allowance
Personal Relief (Annual) LKR 1,800,000
Progressive Tax Slabs
Taxable Income (LKR) Tax Rate
First 1,000,0006%
Next 500,00018%
Next 500,00024%
Next 500,00030%
Balance36%

Source: Inland Revenue (Amendment) Act, No. 02 of 2025 — effective 1 April 2025. Personal relief increased from LKR 1,200,000 to LKR 1,800,000.

Tax Calculation Form

Total income from all sources before personal relief
Optional — approved donations, etc.
Learn More — What counts as Assessable Income?
What to Include (per IRD Sri Lanka)

Assessable Income is the total income received or derived during the Year of Assessment from the following sources, before deducting Personal Relief or Qualifying Payments:

  • Employment Income — Salary, wages, allowances, and cash/non-cash benefits from your employer.
  • Business Income — Profits from any trade, business, profession, or vocation.
  • Investment Income — Interest, dividends, rent, royalties, and similar returns.
  • Other Income — Any other taxable gains or profits not falling under the above.
What to Exclude

Do not include income that is specifically exempt or excluded under the Inland Revenue Act (for example, certain terminal benefits, approved pension income, or exempt investment gains as defined in the Act). Only enter the taxable portion of your total income here.

Reference: IRD Sri Lanka — FAQs (Assessable Income definition); Return of Income – Individual (Part A: Income Liable to Tax).
Learn More — What are Qualifying Payments?
Verified Qualifying Payment (IRD Website)

The IRD website explicitly states that donations made in money to an Approved Charity are deductible from Assessable Income as a Qualifying Payment.

Deduction Cap

The deductible amount is limited to the lowest of the following three values:

  • One-third (1/3) of your Taxable Income (after Personal Relief)
  • Rs. 75,000
  • The actual amount donated
Important Note

The Inland Revenue Act lists other qualifying payments (e.g., contributions for Samurdhi shop establishment, film industry expenditure), but their current-year applicability and caps are not confirmed in the IRD documents available at the time of this update. Only enter amounts you can substantiate as valid Qualifying Payments for the relevant Year of Assessment. If unsure, enter 0 to avoid an inaccurate tax computation.

Reference: IRD Sri Lanka — Approved Charity Publications; Guide to IIT (Annexure 3 – List of Qualifying Payments); Schedule 5 (Qualifying Payments).
Disclaimer: Do not pay or refrain from paying any tax liability to the Inland Revenue Department (IRD) based on the values produced by this calculator. Please consult a qualified tax professional before making any decisions. This calculator is provided for illustration and educational purposes only.

Results

Assessable Income -
Less: Personal Relief -
Taxable Income -
Total Tax Payable -
Effective Tax Rate -
Monthly APIT (Approx.) -

Slab-by-Slab Breakdown

Slab Income in Slab (LKR) Rate Tax (LKR)

T-Bills Calculators

Treasury Bill pricing and yield calculations (Sri Lanka: A/364)

T-Bill Price Calculator

Results

Days to Maturity-
T-Bill Price-
Settlement Value-

T-Bill Yield Calculator

Maximum 30 decimal places

Results

Days to Maturity-
Face Value100.00
T-Bill Yield-

T-Bill Accrued Interest Calculation

Summary

Purchased Price-
Effective Price-
Accrued Interest-

Detail Breakup

DateEffective PriceEffective ValueDelta AccrualAccrued to Date

T-Bill Capital Gain or Loss Calculator

Buy Deal Data
Sell Deal Data

Results

Effective Value of Purchase as on Sell Date-
Selling Value-
Capital Gain or Loss-

T-Bonds Calculators

Government bond pricing, yield, accrued interest and gain/loss (Sri Lanka: A/A)

T Bond Price Calculator

Results

Accrued Interest-
Clean Price-
Dirty Price-
Clean Value-
Dirty Value-

Yield To Maturity (YTM) Calculator

Results

Days to Maturity-
Current Yield-
Yield to Maturity (YTM)-

T Bond Accrued Interest Calculator

Summary

Last Coupon Date-
Next Coupon Date-
Accrued per 100-
Accrued Interest-

Detail Breakup

DateDelta AccrualAccrued to Date

T Bond Amortization Calculator

Auto-calculated: ROUND(PRICE) + ROUND(Accrued)
Used only for Dirty Value / Settlement Value

ResultsConstant Yield Method

Last Coupon Date-
Next Coupon Date-
Total Amortized Amount as of Required Date-
Amortization Value as of Required Date-
IRR Rate (Constant EIR) — Daily-
IRR Rate (Constant EIR) — Annualized-
Unamortized Amount as of Required Date-

Detail BreakupConstant Yield Method

T Bond Capital Gain or Loss Calculator

Buy Deal Data
Sell Deal Data

ResultsConstant Yield Method

Amortization Value of Purchase Deal as on Selling Date-
Selling Value-
Capital Gain or Loss-

Duration / Modified Duration / Convexity Calculator

Used for ΔPrice estimate and chart markers

Results

Clean Price per 100-
Macaulay Duration (years)-
Modified Duration (years)-
Convexity-
ΔPrice from Duration (per 100)-
ΔPrice from Duration + Convexity (per 100)-
Actual ΔPrice from Re-pricing (per 100)-

Price–Yield Curvature

Actual Price–Yield Curve Duration Tangent (1st order) Convexity Curvature Current YTM

Equity Calculators

Equity valuation, dividend, profitability and return calculations

Equity Value Calculator — Dividend Discount Model (Gordon Growth)

Optional — used for upside/downside

Results

Expected Dividend Next Year (D₁)-
Intrinsic Value per Share-
Current Market Price-
Upside / Downside (%)-

P/E Ratio Calculator

Last 12 months
Optional — next 12 months estimate
Optional — for comparison

Results

Trailing P/E-
Forward P/E-
Sector Average P/E-
Valuation vs Sector-

Dividend Yield Calculator

Optional — for Yield on Cost

Results

Dividend Yield (%)-
Yield on Cost (%)-
Annual Income per 1,000 Shares-

Holding Period Return (HPR) Calculator

Used for annualisation

Results

Holding Period Return (%)-
Annualised HPR (%)-
Capital Gain / Loss (%)-
Dividend Return (%)-

P/B Ratio Calculator

Optional

Results

Book Value per Share-
P/B Ratio-
Sector Average P/B-
Valuation vs Sector-

Earnings Per Share (EPS) Calculator

If none, enter 0
Optional

Results

Basic EPS-
Diluted EPS-
Dilution Impact-

Sustainable Growth Rate Calculator

Results

Return on Equity (ROE)-
Payout Ratio-
Retention Ratio-
Sustainable Growth Rate (%)-

CAPM — Required Rate of Return (Cost of Equity)

e.g. 10-yr govt bond yield

Results

Market Risk Premium (%)-
Required Rate of Return (%)-
Beta Interpretation-

DCF Equity Valuation (FCFE-based)

Optional

Results

PV of Explicit FCFE-
Terminal Value-
PV of Terminal Value-
Equity Value-
Value per Share-

PEG Ratio Calculator

Results

PEG Ratio-
Interpretation-

FX Calculators

Foreign exchange spot, forward, swap points and swap value calculations (Sri Lanka priority: USD/LKR)

FX Forward Rate Calculator

e.g. USD rate
e.g. LKR rate
e.g. 30, 60, 90, 180, 365

Results

Spot Rate-
Forward Points-
Outright Forward Rate-

FX Swap Points Calculator

Results

Swap Points (per unit)-
Swap Points (in pips)-
Annualised Forward Premium/Discount (%)-

FX Swap Value Calculator (Near Leg + Far Leg)

e.g. USD amount

Results

Near Leg (Spot) — Base Amount-
Near Leg (Spot) — Quote Amount-
Far Leg (Forward) Rate-
Far Leg — Base Amount-
Far Leg — Quote Amount-
Net Quote Cash Flow (Far − Near)-

Repo / Reverse Repo Calculators

Repo interest and collateral exposure calculations (Sri Lanka: CBSL standards)

Repo Interest & Collateral Exposure Calculator

Repo Deal Details
Collateral Details
e.g. 5% for T-Bills, 10% for T-Bonds
Clean price per 100

Results

Total Interest-
Per Day Interest-
Maturity Amount-
Total Exposure to be Covered-
Minimum Face Value Required-

Personal Finance Calculators

Everyday money tools — loans, savings, retirement and returns

Mortgage Calculator

Optional
Optional
Optional

Results

Monthly Principal & Interest-
Monthly Tax + Insurance-
Total Monthly Payment-
Total Interest Paid-
Total of All Payments-
Loan Amount Financed-
Calculation Method & How to Read
Formula Used (Standard Amortizing Loan)
M = P × [ i(1+i)ⁿ ] / [ (1+i)ⁿ − 1 ] where: M = Monthly Principal & Interest P = Loan Amount − Down Payment (Principal) i = Annual Rate ÷ 12 (monthly rate) n = Years × 12 (total payments)
What Each Result Means

Monthly P&I: The fixed payment that repays both principal and interest over the loan term. This is the number lenders quote.

Monthly Tax + Insurance: Annual amounts ÷ 12. These go into an escrow account and are not part of loan repayment.

Total Interest Paid: The sum of all interest payments over the life of the loan. This is the cost of borrowing.

How to read: Focus on "Total Monthly Payment" for your budget. If it feels high, try a larger down payment or a longer term — but remember: a longer term means more total interest.
This calculator assumes a fixed rate for the entire term. Adjustable-rate mortgages (ARMs) will have different payments after the initial fixed period.

Yearly Amortization Summary

YearPrincipal PaidInterest PaidTotal PaidBalance

EMI / Loan Calculator

Optional

Results

Monthly EMI-
Total Interest Payable-
Total Payment (Principal + Interest)-
Processing Fee-
Total Cost of Loan-
Number of EMIs-
Calculation Method & How to Read
Formula Used (Equated Monthly Instalment)
EMI = P × r × (1+r)ⁿ / [ (1+r)ⁿ − 1 ] where: P = Loan Principal r = Annual Rate ÷ 12 n = Tenure in months
What Each Result Means

Monthly EMI: The fixed amount you pay each month. It covers interest first, then principal.

Total Interest: What the loan costs you beyond the principal. This is pure cost.

Processing Fee: A one-time fee charged by the lender at disbursement. It is not included in the EMI — it is paid upfront.

How to read: The EMI is your monthly commitment. The "Total Cost of Loan" (Principal + Interest + Fee) is the true amount you pay. Compare this across lenders — a lower EMI with a longer tenure usually means higher total cost.

Auto / Car Loan Calculator

Optional
Optional

Results

Amount Financed-
Monthly Payment-
Total Interest Paid-
Total of All Payments-
Sales Tax Amount-
Total Upfront Cost-
Calculation Method & How to Read
Formula Used
Financed = Price + Sales Tax − Down Payment − Trade-in Monthly = Financed × [ i(1+i)ⁿ ] / [ (1+i)ⁿ − 1 ] where i = Annual Rate ÷ 12, n = Months
What Each Result Means

Amount Financed: The actual loan amount after down payment and trade-in reduce the price.

Monthly Payment: Your fixed car payment.

Total Upfront Cost: Down payment only. (Trade-in reduces the financed amount, not cash upfront.)

How to read: Negotiate the vehicle price first, then discuss financing. A longer term lowers the monthly payment but increases total interest. Aim for the shortest term you can afford.
Sales tax rules vary by jurisdiction. This calculator applies tax to the full vehicle price. Some regions tax only the difference after trade-in — check your local rules.

Compound Interest Calculator

Compounding Mode
Standard mode is what banks use for savings accounts and term deposits with a stated compounding frequency.
Deal Inputs
Used only in Money Market mode
Optional — added at each month end

Results

Total Contributions-
Total Interest Earned-
Future Value-
Effective Annual Rate (EAR)-
Mode Used-
Calculation Method & How to Read
Standard Mode Formula
FV = P(1 + r/n)^(nt) + PMT × [ ((1 + r/n)^(nt) − 1) / (r/n) ] where: P = Initial Principal r = Annual Rate (decimal) n = Compounds per year t = Years PMT = Monthly contribution (if any)
Money Market Mode

Interest accrues daily: Daily Rate = Annual Rate ÷ Day Count Basis. Balance grows by this daily rate each day. This matches how fixed deposits and call money accounts work.

What Each Result Means

Future Value: What your money grows to. This is the headline number.

Total Interest: The growth earned by compounding — your money working for you.

EAR (Effective Annual Rate): The true annual return after compounding. A 9% nominal rate compounded monthly has an EAR of 9.38%.

How to read: The "Future Value" is what you end up with. The "Total Contributions" is what you put in. The difference (interest) is the reward for patience. Start early — time is the biggest factor in compounding.

Yearly Growth

YearContributionsInterestBalance

Retirement Calculator

Results

Years to Retirement-
Corpus at Retirement (Nominal)-
Monthly Income Possible (Today's Money)-
Total Contributions-
Total Growth Earned-
Calculation Method & How to Read
Accumulation Phase
Balance grows monthly: Balance = Balance × (1 + monthlyRate) + Monthly Savings Total Contributions = Current Savings + (Monthly × Months)
Income Phase (Corpus Depletion)
Real Rate = ((1 + Return) / (1 + Inflation)) − 1 Monthly Real Rate = (1 + Real Rate)^(1/12) − 1 Monthly Income = Corpus × monthlyRealRate / [1 − (1 + monthlyRealRate)^-retMonths] This assumes the corpus is fully depleted at life expectancy.
What Each Result Means

Corpus at Retirement: The total pot of money you will have on the day you retire (in future rupees, not today's money).

Monthly Income (Today's Money): What that corpus can pay you each month, expressed in current purchasing power after stripping out inflation.

How to read: If the "Monthly Income" is less than what you need to live on, you need to save more, retire later, or accept more investment risk. The corpus number looks huge because of inflation — the "Today's Money" income is the realistic figure.
This method assumes you spend the entire corpus by life expectancy. Many planners recommend keeping a safety buffer or using a 4% withdrawal rule instead.

Return on Investment (ROI) Calculator

Fees, taxes, etc. (Optional)
Decimal years accepted (e.g. 2.5)
Used for annualised ROI only

Results

Net Profit-
ROI (%)-
Annualised ROI (%)-
Total Cost Basis-
Effective Days Used-
Calculation Method & How to Read
Simple ROI
ROI = (Final Value − Total Cost) / Total Cost Total Cost = Initial Investment + Additional Costs
Annualised ROI (with Day Count)
Years = Effective Days ÷ Days in Year (per selected basis) Annualised ROI = (1 + ROI)^(1/Years) − 1
What Each Result Means

ROI (%): The total return over the entire holding period, not annualised.

Annualised ROI: The equivalent yearly compound return. This lets you compare investments of different lengths fairly.

Effective Days Used: Shows the day-count convention applied. A/365 means years are 365 days.

How to read: Use "Annualised ROI" to compare. A 30% return over 3 years is only ~9.1% annualised. A 15% return over 1 year beats it. The day count matters for precision — A/365 is the global default.

NPV & IRR Calculator

Cash Flow Mode
Deal Inputs
Used for IRR/XIRR annualisation
Cash Flows
One value per year, starting year 1. Do not use thousand separators (commas) within the numbers.

Results

Net Present Value (NPV)-
Internal Rate of Return (IRR)-
Payback Period-
Profitability Index (PI)-
Verdict-
Calculation Method & How to Read
NPV Formula
NPV = Σ [ CFₜ / (1+r)ᵗ ] − Initial Investment where CFₜ = cash flow in period t, r = discount rate
IRR (Annual Mode)

The discount rate that makes NPV = 0. Solved by iteration. Accept project if IRR > cost of capital.

XIRR (Dated Mode)
XIRR = r such that Σ [ CFᵢ / (1+r)^(daysᵢ / basis) ] = 0 where daysᵢ = days from investment start to cash flow i
What Each Result Means

NPV: The value created in today's money. Positive = wealth-increasing. Negative = wealth-destroying.

IRR / XIRR: The annualised percentage return of the project. Compare to your cost of capital or hurdle rate.

Payback Period: How long until you recover the initial investment (undiscounted).

Profitability Index (PI): PV of inflows ÷ initial investment. PI > 1 means value creation.

How to read: NPV > 0 and IRR > your required return → Accept. NPV < 0 → Reject. PI > 1 → Good. Payback is a liquidity indicator, not a profitability measure — a project can have a long payback but huge NPV.
IRR can be misleading if cash flows change sign more than once (multiple IRRs). NPV is the theoretically superior criterion.

Sri Lanka Personal Income Tax Calculator

Tax-Free Allowance
Personal Relief (Annual) LKR 1,800,000
Progressive Tax Slabs
Taxable Income (LKR) Tax Rate
First 1,000,0006%
Next 500,00018%
Next 500,00024%
Next 500,00030%
Balance36%

Source: Inland Revenue (Amendment) Act, No. 02 of 2025 — effective 1 April 2025. Personal relief increased from LKR 1,200,000 to LKR 1,800,000.

Tax Calculation Form

Total income from all sources before personal relief
Optional — approved donations, etc.
Learn More — What counts as Assessable Income?
What to Include (per IRD Sri Lanka)

Assessable Income is the total income received or derived during the Year of Assessment from the following sources, before deducting Personal Relief or Qualifying Payments:

  • Employment Income — Salary, wages, allowances, and cash/non-cash benefits from your employer.
  • Business Income — Profits from any trade, business, profession, or vocation.
  • Investment Income — Interest, dividends, rent, royalties, and similar returns.
  • Other Income — Any other taxable gains or profits not falling under the above.
What to Exclude

Do not include income that is specifically exempt or excluded under the Inland Revenue Act (for example, certain terminal benefits, approved pension income, or exempt investment gains as defined in the Act). Only enter the taxable portion of your total income here.

Reference: IRD Sri Lanka — FAQs (Assessable Income definition); Return of Income – Individual (Part A: Income Liable to Tax).
Learn More — What are Qualifying Payments?
Verified Qualifying Payment (IRD Website)

The IRD website explicitly states that donations made in money to an Approved Charity are deductible from Assessable Income as a Qualifying Payment.

Deduction Cap

The deductible amount is limited to the lowest of the following three values:

  • One-third (1/3) of your Taxable Income (after Personal Relief)
  • Rs. 75,000
  • The actual amount donated
Important Note

The Inland Revenue Act lists other qualifying payments (e.g., contributions for Samurdhi shop establishment, film industry expenditure), but their current-year applicability and caps are not confirmed in the IRD documents available at the time of this update. Only enter amounts you can substantiate as valid Qualifying Payments for the relevant Year of Assessment. If unsure, enter 0 to avoid an inaccurate tax computation.

Reference: IRD Sri Lanka — Approved Charity Publications; Guide to IIT (Annexure 3 – List of Qualifying Payments); Schedule 5 (Qualifying Payments).

Results

Assessable Income -
Less: Personal Relief -
Taxable Income -
Total Tax Payable -
Effective Tax Rate -
Monthly APIT (Approx.) -

Slab-by-Slab Breakdown

Slab Income in Slab (LKR) Rate Tax (LKR)

Portfolio Planner

Allocate your cash across different investment instruments

Cash in Hand
0.00
Total available capital
Allocated Funds
0.00
0% of cash in hand
Unallocated Funds
0.00
Available to invest
📄 T-Bills
📈 T-Bonds
📊 Equity
💰 Fixed Deposits (FD)
Your Current Portfolio
—