Created
February 26, 2021 21:37
-
-
Save RabbitJackTrade/39cfeee75675b12f1e9d7b686540ea94 to your computer and use it in GitHub Desktop.
Calculates effin interest
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
name: effinInt | |
description: Calculates effin interest | |
host: EXCEL | |
api_set: {} | |
script: | |
content: | | |
/** | |
/* @CustomFunction */ | |
function effIntPayPrd(nom_annaul_rate, num_int_periods, num_pay_periods) { | |
let rck = nom_annaul_rate / (num_int_periods * num_pay_periods); | |
return Math.pow(1 + rck, num_int_periods) - 1; | |
}; | |
language: typescript | |
template: | |
content: | | |
<p class="ms-font-m">Executes a simple code snippet.</p> | |
<button id="run" class="ms-Button"> | |
<span class="ms-Button-label">Run code</span> | |
</button> | |
language: HTML | |
style: | |
content: '' | |
language: CSS | |
libraries: | | |
https://appsforoffice.microsoft.com/lib/1/hosted/office.js | |
@types/office-js | |
core-js@2.4.1/client/core.min.js |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment