wc-interest-calc
TypeScript icon, indicating that this package has built-in type declarations

2.1.0 • Public • Published

Interest Calculator as Web Component

Built With Stencil

bla

A simple compount interest calculator built as a web component.

You can calculate the principal, interest, duration or the final amount based on the other values.

How to use

Include the interest-component.js script into your page.

Then use the wc-interest-calc selector to use the interest calculator in your page.

Properties

Property Attribute Description Type Default
checked checked Which of the radioButtons should be selected; possible values are descrbed below string 'finalAmount'
duration duration duration (in years) number 0
finalAmount final-amount final Amount after interest is applied to the principal number 0
interest interest interest number 0
principal principal principal (starting Amount) number 0
symbol symbol symbol used next to the principal and final Amount input string $
headerText header-text Optional Header string Interest Calculator

Possible values for checked are: 'principal', 'interest', 'duration', 'finalAmount'

License

  • Stencil is and my code are licenced unter MIT
  • My code is licenced unter MIT

Dependencies (0)

    Dev Dependencies (6)

    Package Sidebar

    Install

    npm i wc-interest-calc

    Weekly Downloads

    2

    Version

    2.1.0

    License

    MIT

    Unpacked Size

    315 kB

    Total Files

    42

    Last publish

    Collaborators

    • chrisste