Created
August 21, 2022 21:13
-
-
Save mahelbir/6165da9566c53dedb4a1dde8872045c5 to your computer and use it in GitHub Desktop.
Kur Korumalı Vadeli Mevduat Faizi Hesaplama
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function kkm(charge, startRate, endRate, days=92, percentage=17){ | |
let interest = charge * (percentage / 100) * (days / 365); | |
let forex = (endRate - startRate) * (charge / startRate); | |
if(forex > interest){ | |
return forex + charge; | |
} else { | |
return interest + charge; | |
} | |
} |
Author
mahelbir
commented
Aug 21, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment