HOW TO MAKE A LOAN CALCULATOR USING ELEMENTOR HTML || CODE IN THE DESCRIPTION

  Рет қаралды 1,383

2k studios

2k studios

Күн бұрын

Пікірлер: 3
@thee_streets
@thee_streets Жыл бұрын
Code: .slider { -webkit-appearance: none; width: 100%; height: 15px; border-radius: 5px; background: #ccc; outline: none; opacity: 0.7; -webkit-transition: .2s; transition: opacity .2s; } .slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 25px; height: 25px; border-radius: 50%; background: #0904fa; cursor: pointer; } .slider::-moz-range-thumb { width: 25px; height: 25px; border-radius: 50%; background: #0904fa; cursor: pointer; } Loan Amount: $ 0 Amount Interest: % Repayment period: 0 years Total Repayment: $ 0 Total Interest: $ 0 Estimated Monthly Repayment: $ 0 function calculateLoan() { let loanAmount = document.getElementById("loan_amount").value; let annualInterest = document.getElementById("annual_interest").value / 100 / 12; let loanRepaymentPeriod = document.getElementById("loan_repayment_period").value; document.getElementById("loan_amount_value").innerHTML = loanAmount; document.getElementById("loan_repayment_period_value").innerHTML = loanRepaymentPeriod; let estimatedMonthlyRepayment = loanAmount * (annualInterest * (Math.pow((1 + annualInterest), (loanRepaymentPeriod * 12)))) / (Math.pow((1 + annualInterest), (loanRepaymentPeriod * 12)) - 1); document.getElementById("estimated_monthly_repayment_value").innerHTML = estimatedMonthlyRepayment.toFixed(2); let totalRepayment = estimatedMonthlyRepayment * loanRepaymentPeriod * 12; document.getElementById("total_repayment_value").innerHTML = totalRepayment.toFixed(2); let totalInterest = totalRepayment - loanAmount; document.getElementById("total_interest_value").innerHTML = totalInterest.toFixed(2); }
@diserafimm
@diserafimm Жыл бұрын
Aonde fica guardada o resultado para usar o lead posteriormente?
@thee_streets
@thee_streets Жыл бұрын
Deve estar na calculadora, meu amigo.
«Жат бауыр» телехикаясы І 30 - бөлім | Соңғы бөлім
52:59
Qazaqstan TV / Қазақстан Ұлттық Арнасы
Рет қаралды 340 М.
CS50’s Web Programming - Finale Project - House_Budget_App
4:34
Create and Airdrop ERC20 Tokens and NFTs | Step-by-Step Guide
3:01
ChainOpera Ai airdrop fun raise 17$million,BiG profit soon
8:29
settings
2:42
SHSM Tech
Рет қаралды 4
CS50X 2024 - MICHEL DE SOUZA
3:27
Michel Silva de Souza
Рет қаралды
3.Typography Font
2:26
Muhamad Fikri
Рет қаралды 4
How TO Improve Your Church FAST!!!
3:48
Robert Shy
Рет қаралды 9