Public
Edited
Aug 14, 2023
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
interes = {
let interes = [];
let totalInterest = 0;
for (let i = 1; i <= credit.quota; i++) {
let value =
(credit.mon - (credit.mon / credit.quota) * i) * (credit.rate / 100 / 12);
interes.push(value);
totalInterest += value;
}
return { interes, totalInterest };
}
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