Published unlisted
Edited
Apr 27, 2022
Insert cell
Insert cell
//https://observablehq.com/@jashkenas/handy-embed-code-generator
Insert cell
### Enter the interest rate (in %)
Insert cell
Insert cell
### Enter loan amount borrowed (in ₹lakhs)
Insert cell
viewof prin = slider({props:{min:1, max:200, value: 50, step: 1}})
Insert cell
### Enter the loan duration (in years)
Insert cell
viewof horiz = slider({props:{min:1, max:30, value: 15, step: 1}})
Insert cell
emi = Number(PMT(rate/100,horiz*12,-prin * 100000,0,0).toFixed(0)).toLocaleString('hi-IN');
Insert cell
titleemi = html`<h3>EMI is ₹${emi}</h3>`
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more