Someone sent you a WishLoop 🎁

Tap to open your surprise message

Tap to open your surprise message

const express = require("express"); const { v4: uuidv4 } = require("uuid"); const { createCanvas } = require("canvas"); const app = express(); app.use(express.json()); /* ========================= 🎯 FESTIVAL CONFIG ========================= */ const festivals = [ { slug: "mothersday", name: "Mother's Day", date: "2026-05-10", themeColor: "#ff4d6d" }, { slug: "fathersday", name: "Father's Day", date: "2026-06-21", themeColor: "#4dabf7" }, { slug: "diwali", name: "Diwali", date: "2026-11-12", themeColor: "#FFD700" }, { slug: "christmas", name: "Christmas", date: "2026-12-25", themeColor: "#2ecc71" }, { slug: "birthday", name: "Birthday", date: null, themeColor: "#ff922b" } ]; /* ========================= 🧠 STORAGE (MVP) ========================= */ const cards = []; /* ========================= 🔮 NEXT FESTIVAL LOGIC ========================= */ function getNextFestival() { const today = new Date(); const upcoming = festivals .filter(f => f.date) .map(f => ({ ...f, diff: new Date(f.date) - today })) .filter(f => f.diff > 0) .sort((a, b) => a.diff - b.diff); return upcoming[0] || festivals[0]; } /* ========================= 🌐 MAIN PAGE (WishLoop) ========================= */ app.get("/wishloop", (req, res) => { const nextFest = getNextFestival(); const options = festivals.map(f => `` ).join(""); res.send(` WishLoop – Create & Send Wishes

🎁 WishLoop

Create → Send → Spread Wishes

🔥 Create for ${nextFest.name}

`); }); /* ========================= 🎯 CREATE CARD ========================= */ Create Greeting Card 🎉 app.post("/create-card", (req, res) => { const { category, from, to, message } = req.body; const id = uuidv4(); cards.push({ id, category, from, to, message }); res.json({ link: "/card/" + id }); }); /* ========================= 🖼️ DYNAMIC OG IMAGE ========================= */ app.get("/og/:id", (req, res) => { const card = cards.find(c => c.id === req.params.id); if (!card) return res.send("Not found"); const fest = festivals.find(f => f.slug === card.category); const canvas = createCanvas(600, 315); const ctx = canvas.getContext("2d"); ctx.fillStyle = "#111"; ctx.fillRect(0, 0, 600, 315); ctx.fillStyle = fest.themeColor; ctx.font = "28px Arial"; ctx.fillText(fest.name, 40, 60); ctx.fillStyle = "#fff"; ctx.font = "20px Arial"; ctx.fillText(card.from + " → " + card.to, 40, 130); ctx.font = "16px Arial"; ctx.fillText(card.message.substring(0, 80), 40, 180); res.setHeader("Content-Type", "image/png"); canvas.createPNGStream().pipe(res); }); /* ========================= 🎉 CARD VIEW ========================= */ app.get("/card/:id", (req, res) => { const card = cards.find(c => c.id === req.params.id); if (!card) return res.send("Card not found"); const fest = festivals.find(f => f.slug === card.category); res.send(` Someone sent you a WishLoop 🎁

🎉 ${card.from} sent you a ${fest.name} wish

To: ${card.to}

${card.message}


👉 Create your own `); }); /* ========================= 🚀 START SERVER ========================= */ const PORT = process.env.PORT || 10000; app.listen(PORT, '0.0.0.0', () => { console.log("Server running on port " + PORT); });

How to Use

The principal amount is already set to ₹1,00,000

Enter the interest rate (%) (e.g., 5%, 8%, 10%)

Enter the time period (years)

Choose:

Simple Interest or Compound Interest

(Optional) Add inflation rate

Click Calculate

👉 You will instantly see:

Interest earned on ₹1 lakh

Total amount after interest

Yearly earnings

Real value after inflation

Why Use This 1 Lakh Calculator

No need to remember formulas

Instant and accurate results

Helps in comparing different interest rates

Ideal for investment and loan planning

Shows real returns after inflation

Use Cases

Calculate FD returns on 1 lakh

Estimate loan interest on ₹100000

Compare 5% vs 8% returns

Plan savings goals

Understand long-term growth

Key Features

✅ Pre-filled ₹1,00,000 amount

✅ Simple & Compound Interest toggle

✅ Smart insights (yearly income & growth %)

✅ Inflation-adjusted return

✅ Growth chart visualization

✅ Shareable result link

✅ Compare scenarios

Example Calculation

Let’s say:

Principal = ₹1,00,000

Interest Rate = 8%

Time = 5 years

👉 Simple Interest:

Interest = ₹40,000

Total Amount = ₹1,40,000

👉 This means you earn ₹8,000 per year on your investment.

Tips for Better Returns

Choose higher interest rates for better gains

Consider compound interest for long-term growth

Always factor in inflation

Compare multiple scenarios before investing

Safety Note

This calculator provides estimated results. Actual returns may vary based on bank policies, taxes, and market conditions.

Mobile Friendly

This calculator is fully optimized for mobile users, ensuring a smooth and fast experience on all devices.

FAQs

How much interest will I get on ₹1 lakh?

It depends on the rate and time. For example, at 8% for 5 years, you earn ₹40,000.


Can I use this for FD calculation?

Yes, this tool works perfectly for fixed deposits and savings.


What is the formula used?

Simple Interest = (P × R × T) ÷ 100


Is compound interest included?

Yes, you can switch between simple and compound interest.


Can I change ₹1 lakh to another amount?

Yes, you can edit the principal value anytime.


Calculate simple interest quickly for loans, savings, and financial planning.


🔗 Related Tools

Explore more interest and loan calculation tools.

Scroll to Top